users@glassfish.java.net

Re: Disabling Session Persistence

From: Jan Luehe <Jan.Luehe_at_Sun.COM>
Date: Thu, 11 Dec 2008 10:03:31 -0800

On 12/11/08 08:47, glassfish_at_javadesktop.org wrote:
> Version = Sun Java System Application Server Enterprise Edition 8.2 (build b30-p02)
>
> Having the following in web.xml:
>
> <session-config>
> <session-manager persistence-type="memory" />
> </session-config>
>
> Or having the following in domain.xml:
>
> <web-container-availability availability-enabled="false" http-session-store-pool-name="jdbc/hastore" persistence-frequency="web-method" persistence-scope="session" persistence-store-health-check-enabled="false" persistence-type="memory" sso-failover-enabled="false"/>
>
> Doesn't seem to work. When I shutdown either the server or the nodes while there's active session on it I get the following in server.log at shutdown:
>
> Cannot serialize session attribute someBean for session 26e078c12f1ce2bc66233138e59f java.io.NotSerializableException
>
> What am I missing?
>

See my blog "How to Disable Persisting of Memory-based HTTP Sessions
during a Server Restart"
at http://blogs.sun.com/jluehe/entry/how_to_disable_persisting_of

Thanks,

Jan

> [Message sent by forum member 'nthomassin' (nthomassin)]
>
> http://forums.java.net/jive/thread.jspa?messageID=321273
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>