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


Please Help Members By Posting Answers For Below Questions

Can remove() be a Stateless Session bean?

812


What are the system services of ejb container?

815


What is enterprise javabeans (ejb) container?

715


What is the use of @resource?

763


What do you mean by timer service and where it is used?

737


Define ripple effect?

818


What is stateless programming?

817


What is stateful session bean?

783


What do you mean by in-memory replication?

815


What are the callback annotations for entity bean?

748


Explain transaction and various methods to manage it?

723


What is difference between ejb 1.1 and ejb 2.0?

762


Is decorator an ejb design pattern?

866


What is mdb?

748


Is ejb be called from another ejb? If yes then how?

736