[jboss-user] [Microcontainer] - Re: Thread pool deployer?
david.lloyd@jboss.com
do-not-reply at jboss.com
Thu Sep 11 11:53:43 EDT 2008
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
More information about the jboss-user
mailing list