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

Executors inside a container

 
Askar Kalykov
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi. I need to use ExecutorService inside my application.
Application is targeted to intensive usage and I want to take advantage of Java SE 5 concurrency.
How can I use Executors inside Web container? Can I create ExecutorService and put it to ServletContext?
How can I use Executors inside EJB container? Can I put it to JNDI?
Is there any restrictions or special conditions to do this?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic