Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

what s the difference b/w EJB 2.0 and EJB 3.0 technically

Answer Posted / amar

The major differences i have seen between EJB 2.x and EJB
3.0 versions are as follows :-

1). Removal of home interface enabled simple lookup process
in ejb 3.0

2). EJB deployment descriptors are not required in ejb3.0

3). Annotations are used in ejb3.0

4). EJB 3.0 entity beans don’t have home and remote interfaces.

5). EJB 3.0 entity beans/JPA becomes local. Remote
annotations are not at all supported for entity beans.

6). EJB 3.0 beans don’t implement the standard interfaces
like javax.ejb.SessionBean and hence no need to implement
the container call back methods like ejbActivate() etc

7). Query is very flexible. Multiple levels of joins are
enabled through the refined EJB-QL

8). Can be used with pluggable third party persistence providers

9). Security can be provided either through annotations or
through deployment descriptors

10). POJO like EJB 3.0 entities become lightweight and easy
to convert from a DAO to Entity bean or vice versa. Since
EJB 3 entities don’t need implement any interface.

Is This Answer Correct ?    61 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you mean by re-entrant? Can you say that session beans as re-entrant? Can entity beans be specified as re-entrant?

967


What is ejb container in java?

941


What is ejb and its properties?

974


How can a session bean be configured for transactions of bean-managed?

1104


How can I access ejb from asp?

1040


What is activemq used for?

954


What is bean-managed persistence?

1060


What is the default transaction attribute for an ejb?

971


What do you mean by ejb?

991


How can one EJB be called from within another EJB?

984


What is ejb framework?

1079


Why do we need ejb?

1026


What is stateful or stateless?

974


What is stateless ejb?

949


What is Session Bean Interface?

970