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 one EJB from other EJB 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 "one EJB from other EJB" Watch "one EJB from other EJB" New topic

one EJB from other EJB

Manas Ahlaad
Ranch Hand

Joined: Nov 07, 2001
Posts: 165
how do you call one EJB from other EJB?? any configuration in deployment descriptor so that it can effectivel use the called EJB's instance??
Chris Mathews
Ranch Hand

Joined: Jul 18, 2001
Posts: 2712
Calling one ejb from another is routine and done the same way as in any other client. To improve performance use Local Interfaces or ensure the Application Server is using pass-by-reference. If we are talking about Entity Beans then use the CMR features in EJB 2.0.
[ December 11, 2002: Message edited by: Chris Mathews ]
Mr. C Lamont Gilbert
Ranch Hand

Joined: Oct 05, 2001
Posts: 1170

Here the WDJ manager bean will be calling the MartialArtist bean through its local interface.
I agree. Here's the link:
subject: one EJB from other EJB
jQuery in Action, 3rd edition