Setting the User Timeout in JBoss

From Initq

Jump to: navigation, search

Edit $JBOSS_HOME/server//conf/jboss-service.xml, and look for the following section:

To set the default timeout value, simply add an attribute between inside the tag:

<attribute name="DefaultCacheTimeout">VALUE_IN_SECONDS</attribute>

Edit the Web Deployer's default wed application configuration: JBoss 5

  • Edit deployers/jbossweb.deployer/web.xml

JBoss 4.3

  • Edit deploy/jboss-web.deployer/conf/web.xml

Earlier versions

  • Edit deploy/jbossweb-tomcat55.sar/conf/web.xml
<!-- ==================== Default Session Configuration ================= -->
   <!-- You can set the default session timeout (in minutes) for all newly   -->
   <!-- created sessions by modifying the value below.                       -->
 
   <session-config>
      <session-timeout>30</session-timeout>
   </session-config>
Personal tools