title: Jboss Java EE container and an ExecutorService
body: <p>I have a standalone java app which used the ExecutorService to process a number of jobs in parallel</p>
  
  <pre><code> ExecutorService es = Executors.newFixedThreadPool(10);
  </code></pre>
  
  <p>I now want to re-use the same solution within an EJB bean but am unsure how to correctly initialize the ThreadPool, since I'd normally leave the Java EE container to control all thread resources. Can I just use the same code or is there an alternative correct way to get a Jboss managed thread pool?</p>