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 is ejb application?

483


What does it mean to be stateless?

524


Why do we need ejb?

567


how can u integrate ejb and hibernate? How can u call hibernateDAO methods in session bean?

2446


what is mean by OLE ? Please answer me. Advance thanks.

2158






What is bean-managed transaction?

559


What is difference between stateless and stateful?

493


What are transaction isolation levels in ejb?

544


How many ejb objects are created for a bean?

537


What is entity bean in ejb?

546


What are the key features of the ejb technology?

579


Enlist the contents of Container.

578


What is entity beans in ejb with example?

500


A client wants to preserve the reference to the ejbhome object of an enterprise bean instance and use it later. Which of the following can be serialized for this purpose?

522


How does ejb invocation take place?

566