Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

one EJB from other EJB

 
Manas Ahlaad
Ranch Hand
Posts: 165
  • 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
  • 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
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic