users@jaxb.java.net

RE: Customize ObjectFactory To Be Serializable

From: Scott Kaszyk <Scott_K1_at_VERIFONE.com>
Date: Wed, 19 Apr 2006 15:52:33 -0400

 

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