Re: Enums and other serialization woes

From: Andrus Adamchik <andrus@xxx.org>
Date: Tue Oct 25 2005 - 07:58:54 PDT

Jason,

Thanks for the reply.

As it was pretty late last night when I wrote my message, I guess I
didn't make myself clear. I already wrote my own serializer/
deserializer pair - this was an easy part. My doubts were about
integrating it in Hessian. I was wondering if there is a way to
*register* custom serializer with existing Hessian classes as opposed
to subclassing HessianProxyFactory and HessianServlet.

Andrus

On Oct 25, 2005, at 10:39 AM, Jason Stiefel wrote:

> I wrote my own se/deserializer combo for enums. I'll just paste
> them and
> hope it helps you out. The gist of it is you need to know 2 things to
> deserialize an enum (and thus those two things need to be
> serialized) First
> is the classname of the enum. Second is the toString value of the
> enum.
> Using those two pieces you can call:
>
Received on Tue 25 Oct 2005 07:58:54 -0700

This archive was generated by hypermail 2.1.8 : Thu Sep 28 2006 - 20:16:41 PDT