GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  J2EE  >  EJB
Go To First  |  Previous Question  |  Next Question 
 EJB  |  Question 166 of 175    Print  
what is the difference b/w EJB2.1 and EJB3.0?

  
Total Answers and Comments: 5 Last Update: July 29, 2008     Asked by: enjoy 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: santh kumar
 
 
  EJB3.0                                                               
  1. No need of Home Interface (EJBHome),but it is needed in EJB2.0
  2. No more confusions to make an EJB remote or local,it's the client which would decide and cast to appropriate.
  3. Just write SINGLE simple Java class and annotate it to be Stateless/Stateful/Entity/MessageDriven.Container
  4. No Deployment Descriptors , MetaData Annotations are explored which is introduced in J2SE5.0
  5. Forget all EJB life cycles.For example Entity bean life cycle in 3.0 is new,managed,detached,removed.

    Ready to develop complex query,inner/outer join with EJB3.0.


Above answer was rated as good by the following members:
timmireddy, geeky920, Sudeep_7
February 19, 2007 07:03:18   #1  
santh kumar Member Since: February 2006   Contribution: 22    

RE: what is the difference b/w EJB2.1 and EJB3.0?

EJB3.0
  1. No need of Home Interface (EJBHome) but it is needed in EJB2.0
  2. No more confusions to make an EJB remote or local it's the client which would decide and cast to appropriate.
  3. Just write SINGLE simple Java class and annotate it to be Stateless/Stateful/Entity/MessageDriven.Container
  4. No Deployment Descriptors MetaData Annotations are explored which is introduced in J2SE5.0
  5. Forget all EJB life cycles.For example Entity bean life cycle in 3.0 is new managed detached removed.

    Ready to develop complex query inner/outer join with EJB3.0.

 
Is this answer useful? Yes | NoAnswer is useful 2   Answer is not useful 0Overall Rating: +2    
February 25, 2008 01:36:40   #2  
sriharshanamala Member Since: February 2008   Contribution: 5    

RE: what is the difference b/w EJB2.1 and EJB3.0?
Ejb 3.0 siplifies the developement of the application
waht he said is correct

 
Is this answer useful? Yes | No
March 23, 2008 10:33:32   #3  
nitinpokhriyal Member Since: November 2005   Contribution: 4    

RE: what is the difference b/w EJB2.1 and EJB3.0?
The inportant change is introduction of JPA. Now you don't have to use Entity bean as remote object. It will be just POJO for you. you can use them as a object. For persistency layer different ORM can be used like hibernate toplink are the most perferred ones. You can use them outside the container also. Using of annotation made life simple for developers.
 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
July 14, 2008 03:19:38   #4  
timmireddy Member Since: May 2008   Contribution: 17    

RE: what is the difference b/w EJB2.1 and EJB3.0?
Enterprise Application development is too easy in EJB3.0
 
Is this answer useful? Yes | No
July 29, 2008 01:04:29   #5  
saankhya2003 Member Since: July 2008   Contribution: 4    

RE: what is the difference b/w EJB2.1 and EJB3.0?

The main difference lies in the persistence In case of EJB 3.0 there is JPA Java persistence API which makes the mapping of EntityBeans with the database easy with the help of a service called as EntityManager.
Mapping is done with the help of annotations unlike in EJB2.0.
Home interfaces are eliminated.
Deployment descriptors are an option in EJB 3.0.
EJB3.0 also supports webservice client through SOAP and WSDl.


 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape