aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes Asynchronous calls to Session Bean? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Asynchronous calls to Session Bean?" Watch "Asynchronous calls to Session Bean?" New topic
Author

Asynchronous calls to Session Bean?

Twink Vindaloo
Greenhorn

Joined: Oct 23, 2003
Posts: 1
Is there any way for one session bean to call a business method on say another sessionb bean in an asychronous manner?
I do not want to use a MDB but would rather like to be able to call a method on a session bean asynchronously.
Can it be done?
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Can it be done? Technically yes, but you would be breaking the restrictions set by the EJB specification (you shouldn't create threads).


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Sri Basavanahally
Ranch Hand

Joined: Oct 07, 2003
Posts: 75
Can we call a business method on another session bean, from a session bean, using <ejb-ref> ?


UP THE IRONS !
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Yes we can, although you don't have to have an ejb-ref for the bean (it's a good practice but not mandatory).
 
Consider Paul's rocket mass heater.
 
subject: Asynchronous calls to Session Bean?