users@glassfish.java.net

Re: How to turn off session attribute serialization?

From: Ludovic Champenois <Ludovic.Champenois_at_Sun.COM>
Date: Mon, 29 Sep 2008 08:58:41 -0700

glassfish_at_javadesktop.org wrote:
> During a redeploy, all sessions are destroyed (and not serialized), unless you explicitly request that all active sessions be preserved during the redeploy, by specifying "keepSessions=true", as follows:
>
> asadmin redeploy --properties keepSessions=true
>
>
But this works only for recent GF V3 prelude builds, not GlassFish V2
UR2, right?

Lufo
> in which case the sessions are serialized, and the serialized representations stored in memory for the duration of the redeploy.
>
> Notice that the "keepSessions" redeploy property was added only recently, so I doubt you are using it.
>
> Are you perhaps talking about a server restart?
>
> In this case, all active sessions are serialized and written to file (even if the session persistence type is "memory"), and restored following the restart.
>
> See
>
> http://blogs.sun.com/jluehe/entry/how_to_disable_persisting_of
>
> for how to disable this behaviour.
>
> Thanks!
> [Message sent by forum member 'jluehe' (jluehe)]
>
> http://forums.java.net/jive/thread.jspa?messageID=302364
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>