I'd like to turn off session persistence on startup and shutdown. Is it
possible?

My application has been around for a while, and there are lots of
objects being put in the session that are not serializable. When 4.03
shuts down, it logs serializable errors. Also, it seems like a security
issue, writing session information to the file system.

>From the 2.3 spec, section 7.7.2, it requires all objects put into the
session to implement Serializable.
But from what I can read, this is only for applications marked as
'distributable'.
Are all Tomcat applications distributable by default? If not so, how do
I make it 'non-distributable?'

Had a look at the StandardManager.file() method. 
Figured that the only way to get this to work is a hack like this to my
context:

 <Manager className="org.apache.catalina.session.StandardManager"
pathname=""

Seems to work, but it throws nasty exceptions...

Im probably going about this the wrong way and missing something very
obvious. 
Could someone please show me the right way to turn off session
persistence on shutdown/startup?

Thanks,

David



--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to