이 콘텐츠는 선택한 언어로 제공되지 않습니다.
28.8. Configuring SFSB and Session Timeouts in JBoss AS
The timeout for stateful session beans must be longer than the timeout for HTTP sessions, or the stateful session bean may timeout before the user's HTTP Session ends. The JBoss AS has a default session bean timeout of 30 minutes, which is configured in
server/default/conf/standardjboss.xml
— to change this, replace default
with your own preferred configuration.
In the
LRUStatefulContextCachePolicy
cache configuration, modify the value of max-bean-life
to change the default stateful session bean timeout:
You can modify the default HTTP Session timeout in
server/default/deploy/jboss-web.deployer/conf/web.xml
for JBoss 4.2.x or later. The following entry in the web.xml
file controls the default session timeout for all web applications:
<session-config> <!-- HTTP Session timeout, in minutes --> <session-timeout>30</session-timeout> </session-config>
<session-config>
<!-- HTTP Session timeout, in minutes -->
<session-timeout>30</session-timeout>
</session-config>
To override this value for your own application, simply include a modified version of this entry in your application's own
web.xml
.