Patrick LeBoutillier <[EMAIL PROTECTED]> writes:

> On 6/7/05, Luke Chambers <[EMAIL PROTECTED]> wrote:
>> I'm trying to use mod_perl to place a Java Object into Apache's
>> session for retrieval and use later.
>
> I don't think that can be done. In perl land what you have is a stub
> that points to a Java object. You can store the stub in the session,
> but that won't keep the associated Java object alive. If you want to
> do that to need to explicitely serialize the Java object from Java,
> then store that data and recreate the object from scratch later. I'm
> not sure this can be done easily using Inline::Java

If the object is serializable, first serialize it and then store the
string in the session.

Then upon session return, de-serialize it from the string.

Cheers,
jas.

Reply via email to