Differences are:
1) EJB 3.0 allows developers to program EJB components as ordinary Java objects with ordinary Java business interfaces rather than as heavy weight components like EJB 2 (home, remote).
2) In EJB 3.0 you can use annotation or deployment descriptors but in EJB 2 you have to use deployment descriptors.
3) EJB 3 introduced persistence API for database access. In EJB 2 you can use Entity bean.
4) EJB 3.0 is much faster the EJB2.
1) EJB 3.0 allows developers to program EJB components as ordinary Java objects with ordinary Java business interfaces rather than as heavy weight components like EJB 2 (home, remote).
2) In EJB 3.0 you can use annotation or deployment descriptors but in EJB 2 you have to use deployment descriptors.
3) EJB 3 introduced persistence API for database access. In EJB 2 you can use Entity bean.
4) EJB 3.0 is much faster the EJB2.
No comments:
Post a Comment