This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

EJB & Multithreading  RSS feed

 
raja ravindra
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Its possible to use MultiThreading with EJB ?
 
Ajith Kallambella
Sheriff
Posts: 5782
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nope. EJB spec disallows several thread-related operations. The restrictions are summarized by the following paragraph taken from the EJB1.1 spec
The enterprise bean must not attempt to manage threads. The enterprise bean must not attempt to start, stop, or resume a thread; or to change a thread's priority or name. The enterprise bean must not attempt to manage thread groups.
- These functions are reserved for EJB container. Allowing the enterprise bean to manage threads would decrease the Container's ability to properly manage the runtime environment.

Hope that helps.
 
raja ravindra
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for information.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!