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 @resource in java?
What is @injectmock?
What are the various types of entrepreneur java bean?
Define Context?
What does @inject mean in java?
What is ejb and why it is used?
Is it possible to write two ejb’s that share the same remote and home interfaces, and have different bean classes? If so, what are the advantages/disadvantages?
Mention the three levels for applying interceptor methods.
What is ejb 3?
What are the callback annotations for entity bean?
What is ejb javatpoint?
Explain transaction and various methods to manage it?
How is consistency maintained by Stateful Session through transaction updates ?
What’s new in the ejb 2.0 specification?
Differentiate Phantom from Un-repeatable?