This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Soft Skills: The software developer's life manual and have John Sonmez on-line!
See this thread for details.
Win a copy of Soft Skills: The software developer's life manual this week in the Jobs Discussion forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

one EJB from other EJB

 
Manas Ahlaad
Ranch Hand
Posts: 165
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2712
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1170
Eclipse IDE Hibernate Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Here the WDJ manager bean will be calling the MartialArtist bean through its local interface.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic