tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From puneetjain <>
Subject Query Regarding Stateless Session Bean Instance Pool Configuration
Date Fri, 28 Mar 2008 15:06:39 GMT


I have written a Stateless Session Bean and trying to deploy on Geronimo
Server, which interns uses OpenEJB. I am trying to configure the the
Stateless Session Bean Instance Pool. Regarding This I have following


How to configure the Stateless Session Bean Instance Pool size with "x" no
of bean to at the startup of the server?

I have tried below configuration:

 <module name="org.apache.geronimo.configs/openejb/2.0.2/car">
        <gbean name="EJBNetworkService">
            <attribute name="port">${OpenEJBPort + PortOffset}</attribute>
            <attribute name="host">${ServerHostname}</attribute>
        <gbean name="DefaultStatelessContainer">
            <attribute name="properties">TimeOut 120000
				PoolSize 100
				StrictPooling true</attribute>

I want to restrict the pool size to 100 i.e. if there are more than 100
requests come, only 100 requests will be served. Rest of the requests would
be waiting until a bean gets free. No more than 100 beans should be
instantiated to serve the requests.

With the above configuration the number of instantiate beans is more than
the pool size.

OS: Redhat Enterprise Linux 4
Application Server: Geronimo 2.0.2 with tomcat distribution
EJB 3.0
OpenEJB 2.0.2 (As per mention in the configuration

Please help me to resolve the problem. Any reply will be appreciated.


View this message in context:
Sent from the OpenEJB User mailing list archive at

View raw message