what s the difference b/w EJB 2.0 and EJB 3.0 technically
Answer Posted / nidhi aggarwal
EJB 2.0 are very complex, difficult to learn/use. Uses
methods
like "ejbPassivate", "ejbActivate", "ejbLoad", "ejbStore".
Needs a deployment descriptor.
In EJB 3.0 methods
like "ejbPassivate", "ejbActivate", "ejbLoad", "ejbStore"
are removed. Annotations are provided. In EJB 3.0, we donot
need deployment descriptor. POJO(Plain old java object) are
introduced. For defining any relationship 1:1, 1:N, N:1,
M:N we have annitations.
Is This Answer Correct ? | 42 Yes | 9 No |
Post New Answer View All Answers
How many enterprise beans?
What is EJB object?
Define EAR, WAR and JAR ?
What is activemq used for?
Explain the concept of connection pooling feature of ejb container?
Enlist the CallBack methods of Entity Bean.
What does @singleton annotation do?
What are the differences between ejb 3.0 and ejb 2.0?
What are ejb components?
What is Session Bean Interface?
Why stateless is better than stateful?
Why do we use ejb?
What are the design principles for ejb?
What is ejb and its properties?
Is microservice stateless?