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

How many enterprise beans?

542


What is EJB object?

581


Define EAR, WAR and JAR ?

590


What is activemq used for?

509


Explain the concept of connection pooling feature of ejb container?

521






Enlist the CallBack methods of Entity Bean.

579


What does @singleton annotation do?

512


What are the differences between ejb 3.0 and ejb 2.0?

516


What are ejb components?

526


What is Session Bean Interface?

560


Why stateless is better than stateful?

520


Why do we use ejb?

517


What are the design principles for ejb?

520


What is ejb and its properties?

522


Is microservice stateless?

488