This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "one EJB from other EJB" Watch "one EJB from other EJB" New topic
Author

one EJB from other EJB

Manas Ahlaad
Ranch Hand

Joined: Nov 07, 2001
Posts: 165
Hello,
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??
TIA
Manas
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: http://aspose.com/file-tools
 
subject: one EJB from other EJB