5 Replies Latest reply on Aug 24, 2012 5:56 AM by Jboss fan99

    How to use container managed threads

    Jboss fan99 Newbie

      I'm trying to use some kind of container managed thread service. Basically I want to submit a task that should be run as a separate thread. Inside this runnable task, I need to call some EJB methods that internally are using transactions.


      So how to get handle to Jboss managed ExecutorService or Executor? Once i get handle to this service, i can run tasks easily.

      threads subsystem can be defined in standalone.xml or domain.xml. There are good links on that. But I tried searching for atleast an hour and couldn't find any useful article on how to get handle to this thread service and submit runnable tasks. Any way I can inject or do JNDI lookup on this service?


      Please help.