> -----Original Message-----
> From: Patrick LeBoutillier [mailto:[EMAIL PROTECTED]
> Sent: Friday, June 10, 2005 11:14 AM
> To: Luke Chambers
> Cc: inline@perl.org
> Subject: Re: mod Perl - Persisting an Object in Session
> 
> > However, when I retrieve it from session and try to use it, 
> I am told
> > that it is of type "Inline::Java::Object=HASH(0xa970760))." rather
> > than its original type.
> > 
> 
> That is weird. What is the type before you store it?

Luke, I'd imagine that it's not actually of that *type*, but rather it's just a 
string with that value.  Before you put it into the session store it was 
probably a bona fide Inline::Java::Object object, but now it's probably been 
stringified and lost all its intrinsic object data.

If the object can be serialized, you can probably put its serialized string 
value into the session.

 -Ken

Reply via email to