Changing default session timeout Jboss 7

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:

  1. Add an entry in the application web.xml file:


2. Programmatically override the session timeout for a particular session.

HttpSession session = request.getSession();

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



Further reading:



Wonders Team


    1. I believe the configuration will be the same for JBoss 7 or 5.. however I will check with the author..

      thanks for pointing out..

Comments are closed.