Configuring
In the the config.xml, find the "EJBNetworkService" gbean and add this gbean next to it:
<gbean name="DefaultStatelessContainer">
<attribute name="properties">
TimeOut=0
PoolSize=10
StrictPooling=true
</attribute>
</gbean>
Properties
Each property is as follows:
Property Name |
Description |
TimeOut |
Specifies the time to wait between invocations. This value is measured in milliseconds. A value of 5 would result in a time-out of 5 milliseconds between invocations. A value of zero would mean no timeout. Default value is 0. |
PoolSize |
Specifies the size of the bean pools for this stateless SessionBean container. Default value is 10. |
StrictPooling |
StrictPooling tells the container what to do when the pool reaches it's maximum size and there are incoming requests that need instances. With strict pooling, requests will have to wait for instances to become available. The pool size will never grow beyond the the set PoolSize value. Without strict pooling, the container will create temporary instances to meet demand. The instances will last for just one method invocation and then are removed. Default value is true. |