logo       

Re: session persistence?: msg#00053

java.enhydra.general

Subject: Re: session persistence?

On Tuesday, October 15, 2002, at 09:25 AM, Petr Stehlik wrote:

On Út, 2002-10-15 at 14:03, Petr Stehlik wrote:
SessionManager.MemoryPersistence = true

But somehow it's not enough.

To be more specific: I tried both the MemoryPersistence and also the
SessionHome.SaveOnRestart but everytime I restart the multiserver I see
in the log:

2002.10.15 15:12:06: Enhydra,WARNING: Thread was not registered:
Thread-8

And then all sessions are lost and each user must log in again.

What am I doing wrong?

Petr


It seems like Enhydra's session persistance is more useful for managing the amount of memory used by user sessions than it is for preserving sessions when restarting.

If you set (for example):
SessionManager.SessionHome.Mode = PAGE_TO_DISK
SessionManager.SessionHome.PageDir = /path/to/tmp
SessionManager.SessionHome.PageThreshold = 50
SessionManager.SessionHome.SaveOnRestart = true

then sessions are preserved properly when restarting, if you stop/start your application with the admin console.

If you don't use the admin console, you could try setting SessionManager.SessionHome.PageTimeThreshold to some low number to force sessions to be paged...but this doesn't exactly seem like a graceful solution.

Scott


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise