Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EJB and Threads

 
kundan varma
Ranch Hand
Posts: 323
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
If i need to use thread in my application having EJB layer also. How and where should i put my thread code.
Thanks,
kundan
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34671
367
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Kundan,
Do you want to have the thread call the EJB or the EJB call the thread?

If the former, this is fine. If the later, why do you need an explicit thread rather than an MDB or the Timer service?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic