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
Why is ejb used?
Which is more beneficial: CMP or BMP?
Is it legal to have static initializer blocks in ejb?
What are the system services of ejb container?
What are transaction isolation levels in ejb?
Enlist the enterprise beans types?
What do you mean by abstract schema?
What is software architecture of ejb?
What is ejb context?
Enlist the changes in EJB 2.1 ?
What are the components of ejb?
What is singleton session bean?
What is stateless and stateful session bean in ejb?
How ejb invocation happens?
How many ejb objects are created for a bean?