logo       

Re: session persistence?: msg#00058

java.enhydra.general

Subject: Re: session persistence?

On Wednesday, October 16, 2002, at 06:37 AM, Petr Stehlik wrote:


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...


You don't need to do anything really special regarding the serialization...you just need to have the objects that you put into the session implement the "java.io.Serializable" interface.

Also, I've been trying to get Enhydra's sessions to persist when restarting from the command line (I generally find it more convenient than using the admin app). Adding something like this:

Runtime.getRuntime().addShutdownHook(
new Thread() {
public void run(){
shutdown();
}
}
);

to the application's startup method seems to be working well.

Scott


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

News | FAQ | advertise