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
What is ejb and its properties?
what is mean by OLE ? Please answer me. Advance thanks.
What is session bean in ejb?
how can u integrate ejb and hibernate? How can u call hibernateDAO methods in session bean?
What causes statelessness?
What is dependency injection in ejb?
What is entity beans in ejb with example?
What is the difference between session and entity beans? When should I use one or the other?
Why should we use ejb?
What is stateless and stateful session bean in ejb?
In what format is the conversational data written to the disk?
Name the attributes of javax.ejb.stateful.
What is singleton session bean?
What is ejb in spring?
Elucidate callback in ejb?