users@jaxb.java.net

Re: Customize ObjectFactory To Be Serializable

From: Dmitri Colebatch <dim_at_colebatch.com>
Date: Thu, 20 Apr 2006 08:55:23 +1000

Why do you need to make ObjectFactory serializable? Just create it as
you need it.

Alternatively, you could subclass ObjectFactory and implement the
Serializable interface in your subclass.

cheers
dim

On 4/20/06, Scott Kaszyk <Scott_K1_at_verifone.com> wrote:
>
>
>
>
>
> Is it possible to generate an ObjectFactory that is serializable? I am
> trying to serailize a class that wraps a jaxb class and provides other
> methods such as creating new instances and saving state. However, when I
> attempt to serialize this wrapper class to a file, I get a the following
> error:
>
>
>
> java.io.NotSerializableException:
> com.verifone.isd.sms.scm.jaxb.configData.ObjectFactory
>
>
>
> I've tried using the serializable customization but this seems to effect all
> generated classes EXCEPT ObjectFactory.
>
>
>
> Thanks,
>
> Scott Kaszyk
>
>