Re: session timeouts in servlet deployment (true WAR)
Re: session timeouts in servlet deployment (true WAR)
- Subject: Re: session timeouts in servlet deployment (true WAR)
- From: Hsu <email@hidden>
- Date: Mon, 22 Nov 2004 08:16:06 -0800
My Properties file for the application has this defined:
WOSessionTimeOut=86400
The web.xml file for the servlet contains this, which is part of the
default set up by WebObjects and Xcode when you first tell it you want
a servlet deployment:
<!-- Session timeout in minutes. This is for both JSP/Servlet and
WOSessions. Note this overrides the WebObjects session timeout.
Uncomment the session-config block to use.
<session-config>
<session-timeout>30</session-timeout>
</session-config>
-->
But the point is that all this IS commented out in my deployed
application. Shall I un-comment it and set my session-time out here
instead? Do servlet deployments ignore the Properties file? I was
under the belief that the Properties file was where these things
should be set for deployed applications, because command line
parameters don't necessarily mean anything in servlets, but maybe this
is not true for servlet deployments.
My question is: WHERE and HOW do I set run-time properties for
servlet deployed applications? Did I miss a chapter in some book that
tells me the truth about this? Just tell me. I've done all this
JBoss figuring-out through guess and success (which is a way of saying
trial and error without so much trial).
I believe that it should have read "supercedes" rather than
"overrides". Use the web.xml; the WOSessionTimeout will be ignored and
the default container timeout used otherwise.
Sorry about the lack of docs.
Karl
--
Hallelujiah!
Praise the Lord and let the evil spirits of Pokemon leave this frail
earthly body!
And Lord, can you vacuum my apartment while you're at it?
Homepage:
http://homepage.mac.com/khsu/index.html
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden