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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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).
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Asynchronous calls to Session Bean?
 
Similar Threads
Big question on transactions
Can a stateless session bean client call the remove()
call session from other session
Question about remove() method of the Session bean
connection rollback/ atomic transaction problem