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 are the differences between ejb 3.0 and ejb 2.0?
What is an ejb container?
What is a local interface?
Enlist the declarative transaction types?
What is entity bean?
What is stateless session?
What is the difference between ejb and spring?
can u explain about design patterns like singleton,builder,factory
Is microservice stateless?
Differentiate Phantom from Un-repeatable?
What is the use of @resource?
Why is ejb needed?
What is difference between ejb 1.1 and ejb 2.0?
What is ejb container in java?
List down the steps for the demonstration of ejp persistence mechanism.