Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization 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: 34095
337
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