Difference between EJB 2.0 and EJB 3.0
It is very complex, difficult to learn/use.
It uses methods like "ejbPassivate", "ejbActivate", "ejbLoad", "ejbStore".
It needs a deployment descriptor.
It uses EntityBeans for to access the database.
It need to write Home and Remote Interfaces.
In EJB 3.0
It uses like "ejbPassivate", "ejbActivate", "ejbLoad", "ejbStore"are removed.
Annotations are provided.
Don't need deployment descriptor.
It introduce POJO(Plain old java object).
It uses JPA(Java Persistance API) for to access the database.
No need to write Home and remote interfaces.
To identifying all entities with '@' symbol.
For more information on EJB visit to :http://www.roseindia.net/ejb/http://www.roseindia.net/java/jee5/what-is-ejb3.shtml