my dog learned polymorphism*
The moose likes JBoss/WildFly and the fly likes Default Session in Jboss Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Default Session in Jboss" Watch "Default Session in Jboss" New topic
Author

Default Session in Jboss

mamidi venkat
Ranch Hand

Joined: Jul 03, 2007
Posts: 63
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

Joined: Jul 20, 2005
Posts: 9937
    
159

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>


[My Blog] [JavaRanch Journal]
mamidi venkat
Ranch Hand

Joined: Jul 03, 2007
Posts: 63
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

Joined: Jul 20, 2005
Posts: 9937
    
159

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Default Session in Jboss
 
Similar Threads
websphere or weblogic
Free EJB Server
j_security_check fwd to original url
Session time out
Transaction roll back in session bean