On Fri, 4 Jul 2003 07:40, Erik Price wrote:
> How to configure JBoss 3.0 to constrain the session bean pool to only a
> certain number of session beans?  (For stateful beans.)
>
> I wish to test ejbPassivate() and ejbActivate() in action.

You will need to define your own session bean container configuration.

The default ones are in conf/standardjboss.xml and you are probably currently 
using the "Standard Stateful SessionBean" one from that file which has a max 
pool size of 100.

You can copy this configuration from there into your bean's jboss.xml file 
into the <container-configuration> section (see the jboss_3_0.dtd file for 
details) then adapt it to your needs. 

Change the <container-pool-conf><MaximumSize> from 100 to whatever you need.

Then you just need to get your bean to use this new configuration. With 
xdoclet you just define @jboss.container-configuration name="My Stateful 
Configuration" (or whatever you called it) otherwise you need to add the 
<configuration-name> tag to your session bean descriptor in jboss.xml to 
point to the new configuration.

But, this is not a "hard" limit. I think there is another option to enforce 
the limit but I'm not sure what that is.

brian...



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to