Re: [OT] Serializing HttpSession Object

2004-04-15 Thread Michael McGrady
I just did a quick check and noticed that the session object is not serializable. Have you checked out the RequestInfo object and its ilk? Why don't you replace the current sessions with a set of session objects like the EJB 2.0 CMP entity beans? At 11:27 PM 4/15/2004, Johan Wasserman - CPX M

Re: [OT] Serializing HttpSession Object

2004-04-15 Thread Craig McClanahan
Johan Wasserman - CPX Mngd Services wrote: 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); //<

Re: [OT] Serializing HttpSession Object

2004-04-15 Thread Michael McGrady
I don't know you and there is not enough code here to tell how much you know, but do you know that you have to get the output stream to write to from wherever you are sending it to? Thus, you might have something like: URL url = new URL(/* some destination */); HttpURLConnection con