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 \server\default\deploy\jboss-web.deployer



Further reading:



Wonders Team

Latest Comments

  1. Rodrigo Ramalho da Silva April 11, 2015
    • Administrator April 11, 2015

Leave a Reply