Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Asynchronous calls to Session Bean?

 
Twink Vindaloo
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can it be done? Technically yes, but you would be breaking the restrictions set by the EJB specification (you shouldn't create threads).
 
Sri Basavanahally
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can we call a business method on another session bean, from a session bean, using <ejb-ref> ?
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes we can, although you don't have to have an ejb-ref for the bean (it's a good practice but not mandatory).
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic