logo       

RE: session persistence?: msg#00057

java.enhydra.general

Subject: RE: session persistence?

On St, 2002-10-16 at 09:50, Dragan Radakovic wrote:
> When use
> SessionManager.MemoryPersistence = true
> sessions are held into memory while JVM is running (i.e. when you restart
> Multiserver, you also restart JVM).
> This option is usefull when you stop/start Enhydra application in Admin
> application (without shutdown Multiserver).

It does not work as you describe it. Even if I restart the application
using the admin application it writes to log

2002.10.16 12:31:18: Enhydra,WARNING: Thread was not registered:
Thread-14

and no session is preserved.

> SessionManager.SessionHome.Mode = PAGE_TO_DISK
> SessionManager.SessionHome.SaveOnRestart = true

it also requires the PageThreshold to be set (even if it doesn't have
any effect, as you say).

> When Multiserver is shutdown propperly (from Admin application) all sessions
> will be paged to disk

This works, or rather would work, if it didn't throw "PagedSessionHome:
failed to page out active and passive sessions. Caused by:
java.io.NotSerializableException". But I guess that's my fault that my
session object is not serializable.

Does anybody here have an experience with using JSX in Enhydra? JSX is
supposed to serialize anything...

Petr


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

News | FAQ | advertise