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
Register / Login


Win a copy of Mongo DB Applied Patterns this week in the MongoDB forum
or a resume review from Five Year Itch in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Reply 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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
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