Advantages/Disadvantages of EJB(Enterprise JavaBeans):-
There are following advantages of EJB as follows:
1 EJB container provides System level services to enterprise java beans.
2 EJB developer just focus on business logic and on solving business
3 To access EJB free security is provided.
4 Declarative transactions are provided.
5 EJBs are cached & pooled. Containers manage the EJB life cycles.
6 Remote access capabilities are present & are clustered for sake of
7 OO concepts are supported for example inheritance.
8 Usage of attributes or annotation based programming is possible.
9 Free usage & access of complex resources
10 EJB is a standard API due to which applications build on EJB can run on
any complaint Java EE web application server.
Disadvantages of EJB-
There are several disadvantages of EJB as follows:
1 Requires application server
2 Requires only java client. For other language client, you need to go for
3 Complex to understand and develop ejb applications.
4 Complicated and large specification
5 Increased time of development
6 Complexities are added in comparison with straight Java classes
7 Potential to create a more essential, costly & complex solution
8 Continual revisions of the specifications
9 Lots of resources are used & have also lots of artifacts.