logo       

RE: session persistence?: msg#00069

java.enhydra.general

Subject: RE: session persistence?

Every time when I restart any application
using the admin application, regardless of
SessionManager.MemoryPersistence=true or false, it writes to log
Thread was not registered: ....

SessionManager.MemoryPersistence has nothing with that warning.

Please try demo applications (except discRack) and see if you have your
sessions preserved.
If demo applications are OK, than it is something with your application and
it's session handling
(disc rack has problem with handling sessions).

And, of course, your session object must be serializable.

Dragan

-----Original Message-----
From: enhydra-admin@xxxxxxxxxxx [mailto:enhydra-admin@xxxxxxxxxxx]On
Behalf Of Petr Stehlik
Sent: 16. oktobar 2002 12:38
To: enhydra@xxxxxxxxxxx
Subject: RE: Enhydra: 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


_______________________________________________
Enhydra mailing list
Enhydra@xxxxxxxxxxx
http://www.enhydra.org/mailman/listinfo.cgi/enhydra


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

News | FAQ | advertise