JBoss Community

Re: release ThreadlocalPool resources?

created by Carlo de Wolf in EJB3 - View the full discussion

This message in that last thread sums it up I think http://community.jboss.org/message/364033#364033.

 

Remoting has a thread pool, so you can use ThreadlocalPool there.

Robert Geisler wrote:

 

why are there different default pool configurations for Session- and MessageDrivenBeans?

Interesting question. Looking at the MDB settings I see StrictMaxPool, but the amount of threads is probably also governed by the maxSessions activation property. The JBoss(MQ) resource adapter was bad in that it instantiated a thread per request. I think you would become dependable on the implementation details on the RA, so StrictMaxPool is the safe setting. You could try the ThreadlocalPool though.

Reply to this message by going to Community

Start a new discussion in EJB3 at Community