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
Can remove() be a Stateless Session bean?
What are the system services of ejb container?
What is enterprise javabeans (ejb) container?
What is the use of @resource?
What do you mean by timer service and where it is used?
Define ripple effect?
What is stateless programming?
What is stateful session bean?
What do you mean by in-memory replication?
What are the callback annotations for entity bean?
Explain transaction and various methods to manage it?
What is difference between ejb 1.1 and ejb 2.0?
Is decorator an ejb design pattern?
What is mdb?
Is ejb be called from another ejb? If yes then how?