Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

ejb - > thread confusion  RSS feed

 
Vikas Sahu
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can one ejb call a class that creates threads and will notify to that ejb.

Regards -
Vikas
 
Mattias Arthursson
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If I'm not mistaken it's strongly discouraged to create threads of your own from an EJB (included any class that your EJB might call). It's probably still possible though, but I doubt that it's a good idea.

If i'ts asynchronous behaviour you're after you can always do this using JMS and MessageDriven beans instead.
[ September 26, 2004: Message edited by: Mattias Arthursson ]
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!