[jboss-user] [EJB 3.0] - Re: Stateless minimum pool size

wolfc do-not-reply at jboss.com
Tue Jun 5 07:53:59 EDT 2007


The beans are pooled inside the ThreadlocalPool. This means that each remoting thread is given an instance when asked. Depending on how many remoting threads you have it can take a while for the whole ThreadlocalPool to fill up.

You can switch to a more traditional pool: StrictMaxPool, but this does introduce congestion on the semaphore regulating the pool.

A completely different approach would be to optimize cache usage of your entities.

Commonly the PostConstruct is only used for setting up resource connections to slow XA resources. You shouldn't store any data there that is common accross multiple stateless beans or data that is really state.

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

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4051288



More information about the jboss-user mailing list