geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Blevins <david.blev...@visi.com>
Subject Re: Stateful SessionBean has timed-out
Date Fri, 19 Sep 2008 16:47:35 GMT

On Sep 19, 2008, at 12:32 AM, rbaumhof wrote:
> So, i think the reason might be that the timeouts for the session  
> and the
> stateful ejb's may differ. Any hints if i can correct this by mysel?

The stateful bean timeout defaults to 20 minutes, but you can set the  
timeout to anything you like.

In the the config.xml, find the "EJBNetworkService" gbean and add this  
gbean next to it:

     <gbean name="DefaultStatefulContainer">
         <attribute name="properties">
            TimeOut=20
            PoolSize=1000
            BulkPassivate=100
         </attribute>
     </gbean>


Each property is as follows:

TimeOut

    Specifies the time to wait between invocations. This
    value is measured in minutes. A value of 5 would
    result in a time-out of 5 minutes between invocations.
    A value of zero would mean no timeout.

    Default value is 20.

PoolSize

   Specifies the size of the bean pools for this
   stateful SessionBean container.

   Default value is 1000.

BulkPassivate

   Property name that specifies the number of instances
   to passivate at one time when doing bulk passivation.

   Default value is 100.


-David


Mime
View raw message