This content has been marked as final.
Show 5 replies
-
1. Re: how can we limit the number of active stateful session b
shupingchen Apr 6, 2007 1:16 PM (in response to shupingchen)Can anybody help me?
-
2. Re: how can we limit the number of active stateful session b
bdecoste Apr 6, 2007 1:41 PM (in response to shupingchen)Stateful Session Beans are not pooled. If you need to control the number of instances, I suggest that you either put a Stateless Session Bean in front of the SFSB and limit the pool size of the SLSB to 2. Or you could limit the number of threads that can access the SFSB, but this will limit access to all beans.
-
3. Re: how can we limit the number of active stateful session b
shupingchen Apr 6, 2007 1:56 PM (in response to shupingchen)jboss cannot limit the number of bean instances that it will keep active for a given stateful bean class, is that right?
-
4. Re: how can we limit the number of active stateful session b
bdecoste Apr 6, 2007 2:02 PM (in response to shupingchen)That's correct - per the spec, SFSBs are not pooled. To manage the memory footprint, SFSBs are passivated. SLSBs are pooled.
-
5. Re: how can we limit the number of active stateful session b
shupingchen Apr 6, 2007 2:11 PM (in response to shupingchen)when is a SFSB made passivated by jboss?