File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "bean interface" Watch "bean interface" New topic

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

Joined: Jul 20, 2005
Posts: 10441

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
- Configuration by exception
[ October 27, 2006: Message edited by: JigaR Parekh ]
I agree. Here's the link:
subject: bean interface
jQuery in Action, 3rd edition