• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Default Session in Jboss

 
mamidi venkat
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,


I would like know that where in Jboss Container dafault session is there ,bec iam using the jboss for the web application its automatically
time out for 30 seconds.I want to increase that one.
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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. -->

<session-config>
<session-timeout>30</session-timeout>
</session-config>
 
mamidi venkat
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi jaikiran,

Thanks for the reply,

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 ???
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic