You can mention the session-timeout in the web.xml file of your application. However, if you want to change at a global level for all applications deployed on JBoss, then you will have to change it in the web.xml file present under %JBOSS_HOME%/server/<servername>/deploy/jbossweb-tomcatxx.sar/conf folder. It has the following:
<!-- ==================== Default Session Configuration ================= --> <!-- You can set the default session timeout (in minutes) for all newly --> <!-- created sessions by modifying the value below. -->
here i have one more Question in Jboss we are having jboss-service.xml and web.xml why jboss-service is used what purpose how its attributes will effect our webapplication. and web application. both .xml files are equally important for any web application ???
Originally posted by mamidi venkat: why jboss-service is used what purpose how its attributes will effect our webapplication. and web application. both .xml files are equally important for any web application ???
A web-application needs a web.xml in the WEB-INF folder for the server to identify it as a web-application.
A jboss-service.xml (or *-service.xml) file is required in JBoss, if you have to deploy any service. Have a look at SERVICEdotXML for more details.