Session Timeout in dcm4chee-web3

219 views
Skip to first unread message

Rüdiger

unread,
Feb 10, 2014, 10:09:26 AM2/10/14
to dcm...@googlegroups.com
Hi all,

does anybody know where to configure the default session timeout for the dcm4chee-web3 interface? Is there a setting in the JMX console, or do I have to edit a special .war file? I think the default timeout is 30 minutes... Any assistance would be appreciated.


Best Regards

fleetwoodfc

unread,
Feb 11, 2014, 8:39:59 AM2/11/14
to dcm...@googlegroups.com
Should be in the dcm4chee-web-war-3.0.x.war file - defined in WEB-INF/web.xml (I think 60 minutes by default)

Rüdiger

unread,
Feb 11, 2014, 9:17:49 AM2/11/14
to dcm...@googlegroups.com
Hm... I can't get it to work. This is what I've done so far... can anybody give me a hint?

mkdir /tmp/ear; cd /tmp/ear
unzip
/usr/local/dcm4chee/server/default/deploy/dcm4chee-web-ear-3.0.3-mysql.ear

Surprisingly there is no WEB-INF/web.xml file, so I created

mkdir WEB-INF; nano WEB-INF/web.xml

with this content (120 minutes timeout):

<?xml version="1.0" encoding="ISO-8859-1"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
   
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
   
version="2.4">

   
<session-config>
       
<session-timeout>120</session-timeout>
   
</session-config>

</web-app>


I zipped to the original ear-destination and even rebooted the server:

zip -r /usr/local/dcm4chee/server/default/deploy/dcm4chee-web-ear-3.0.3-mysql.ear *
reboot

But the new timeout is not recognized, and I don't know why.


fleetwoodfc

unread,
Feb 11, 2014, 11:00:07 AM2/11/14
to dcm...@googlegroups.com
You will need to unpack the .ear then unpack dcm4chee-web-war-3.0.x.war to get at the web.xml file.

Rüdiger

unread,
Feb 12, 2014, 4:14:08 AM2/12/14
to dcm...@googlegroups.com
Perfect, that solved my problem. Thank you!
Reply all
Reply to author
Forward
0 new messages