Here's some imaginary XML:

  | <threading>
  |     <thread-group name="MyServiceThreads" daemon="false" max-priority="10"/>
  | 
  |     <thread-factory name="MyServiceThreadFactory">
  |         <thread-group name="MyServiceThreads"/>
  |         <thread-name pattern="%s-%d">
  |             <param type="thread-group-name"/>
  |             <param type="thread-number"/>
  |         </thread-name>
  |     </thread-factory>
  | 
  |     <cached-thread-pool-executor name="MyServiceExecutor">
  |         <thread-factory name="MyServiceThreadFactory"/>
  |     </cached-thread-pool-executor>
  | </threading>
  | 

Or something like that.  Then you inject the executor into your POJO the usual 
way.  It's always nice to have the container control all this crap...

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4175904#4175904

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4175904
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to