*
The moose likes EJB and other Java EE Technologies and the fly likes bean interface Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "bean interface" Watch "bean interface" New topic
Author

bean interface

S Thiyanesh
Ranch Hand

Joined: Mar 19, 2006
Posts: 142
What's the advantage of the Bean interface model of EJB 3.0 over the pervious home/component interface model in EJB 2.x?
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10240
    
168

Some of the advantages:

- Ease of development in EJB3, since there is no longer the need for having Home interfaces.

- The required business interface for a session bean can be a plain Java interface rather than an EJBObject, EJBLocalObject, or java.rmi.Remote interface.

- Also, with the advent of annotations, there is no longer a need for deployment descriptors.
[ October 26, 2006: Message edited by: Jaikiran Pai ]

[My Blog] [JavaRanch Journal]
JigaR Parekh
Ranch Hand

Joined: May 23, 2005
Posts: 112
Advantages are
- POJO and POJI
- Configuration by exception
....
[ October 27, 2006: Message edited by: JigaR Parekh ]
 
jQuery in Action, 2nd edition
 
subject: bean interface