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

What is ejb and its properties?

530


what is mean by OLE ? Please answer me. Advance thanks.

2162


What is session bean in ejb?

518


how can u integrate ejb and hibernate? How can u call hibernateDAO methods in session bean?

2453


What causes statelessness?

483






What is dependency injection in ejb?

538


What is entity beans in ejb with example?

506


What is the difference between session and entity beans? When should I use one or the other?

550


Why should we use ejb?

527


What is stateless and stateful session bean in ejb?

491


In what format is the conversational data written to the disk?

509


Name the attributes of javax.ejb.stateful.

558


What is singleton session bean?

583


What is ejb in spring?

445


Elucidate callback in ejb?

546