I need to serialize the session and save it to a blob in MySql (i use
Hibernate).
 
I have tried, for example;
...
ByteArrayOutputSream baos = new ByteArrayOutputstream();
ObjectOutputStream oos = new ObjectOutputStream(boas);
oos.writeObject(session);  //<-- it fails here, nothing in the logs
byte[] sessionAsBytes = baos.toByteArray();
...
 
I need this to give the user the option to restore a previous session
(where they where before they last logged out, with all the session
variables required to restore to that point).
 
 Thanks, Johan.

Reply via email to