| 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
|
|
|
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
|
|
|
Yes we can, although you don't have to have an ejb-ref for the bean (it's a good practice but not mandatory).
|
 |
 |
|
|
subject: Asynchronous calls to Session Bean?
|
|
|