• Post Reply Bookmark Topic Watch Topic
  • New Topic

Threads in EJB

 
aakash bhatt
Ranch Hand
Posts: 182
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can i define threads in EJB (Entity bean or Session bean)

Thanks,
aakash
 
Janab-e-Alee
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If your application design requires extensive use of threads, then the EJB spec actually prevents you from using EJBs (although some EJB container vendors may provide nonportable ways around this restriction). Container systems manage resources, transactions, security, and other qualities of service using threads; threads you create are outside of the container's control and can potentially cause system failures. Also, EJB containers may distribute EJBs across multiple JVMs, preventing the synchronization of threads.

----
Hope this helps!!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!