aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes communicate one ejb bean to another ejb bean 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 "communicate one ejb bean to another ejb bean" Watch "communicate one ejb bean to another ejb bean" New topic
Author

communicate one ejb bean to another ejb bean

thomas davis
Ranch Hand

Joined: Feb 01, 2003
Posts: 207
Enterprise Beans are building blocks that can be used alone or with other enterprise beans to build complete
How to communicate one ejb bean to another ejb bean?
Can I call one ejb bean in another ?
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8919

Yes, you can call on EJB from another. You will use the same lookup code to call an ejb from another.


Groovy
thomas davis
Ranch Hand

Joined: Feb 01, 2003
Posts: 207
Could you please send me the code snippet,I mean how to call it ?
Is it possible to call another stateless or stateful or entity bean from another bean ?
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8919

Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
<hr></blockquote>
Pradeep, why not use ejb-ref if you need to avoid hardcoding the JNDI name of the other bean?

[ August 08, 2003: Message edited by: Lasse Koskela ]

Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: communicate one ejb bean to another ejb bean