JBoss Enterprise Application Platform 6 has a default session bean timeout of 30 minutes, which is configured in standalone/configuration/standalone.xml
The default HTTP session timeout can’t be modified in EAP 6.
To override default value for your own application, follow the below approaches:
- Add an entry in the application web.xml file:
<web-app> <session-config> <session-timeout>15</session-timeout> </session-config> </web-app>
2. Programmatically override the session timeout for a particular session.
HttpSession session = request.getSession(); session.setMaxInactiveInterval(10*30);
Note: In older versions of Jboss Application Server ex. Version 5, it provided a provision of overriding the global session time out setting from the Jboss web.xml file under the location $JBOSS_HOME serverdefaultdeployjboss-web.deployer
<session-config> <session-timeout>30</session-timeout> </session-config>
Further reading:
https://access.redhat.com/site/documentation/en-US/JBoss_Web_Framework_Kit/2.2/html/Seam_Reference_Guide/ch27s07.html
Cheers,
Wonders Team
the title say jboss-7, but this configuration is for jboss 5.
I believe the configuration will be the same for JBoss 7 or 5.. however I will check with the author..
thanks for pointing out..