Let me suppose that you are going wrong way.
First, what you need seems more the 'singleton counter' problem than bean
container problem. You may check corresponding threads to solve problem in
such a direction. IMHO the best solution is to use JNDI+RMI (look at Roman's
'Mastering EJBs, p406)
Second, trying to change container parameters to solve application problem
may intersect with another application in the same container. Limiting the
number of bean instances may have influence on caontainer perfomance.
Third, keep in mind that solution sholud be portable and scalable. Limiting
the number of bean instances won't work in multi-container configurations
:-(
Vale! - Mikhail Akopov
----- Original Message -----
From: "Scott Stanley" <[EMAIL PROTECTED]>
To: "jboss-users" <[EMAIL PROTECTED]>
Sent: Wednesday, June 20, 2001 8:57 PM
Subject: [JBoss-user] Limiting the number of instances of Stateful Session
Beans
> We need to be able to limit the number of instances of a stateful
> session bean to control the number of active sessions and we are not
> sure if the container supports this. We have been digging through the
> documentation and the configuration files and what we have found is,
>
> 1) We are able to locate controls to set the minimum and maximum
> size of the bean cache as a whole.
> 2) We can define the class which acts as the instance cache for
> the stateful session beans.
>
> But, we have not found any controls to limit the number of instances.
> Can anyone tell us if it possible to actually limit the number of
> instances or is it only possible to limit the number of the cached
> instances? The implication being that there can be unlimited number of
> passivated beans.
>
> Scott & Frederic
>
>
> __________________________________________________
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail
> http://personal.mail.yahoo.com/
>
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user