users@jaxb.java.net

Making JAXBContextImpl serializable

From: Kenny MacLeod <kennym_at_kizoom.com>
Date: Sun, 05 Nov 2006 11:17:33 +0000

Hi,

A have a slightly unusual request here, but what would be involved in
making com.sun.xml.bind.v2.runtime.JaxbContextImpl serializable?

I ask because I'm playing with writing a mechanism which can serialize
the context to a disk file in order to improve application startup time
(JAXBContext construction for a complex schema is *very* expensive).

I could just use an alternative serialization mechanism which doesn't
require java.iot.Serializable (e.g. JBoss Serialization or XStream), but
I'd rather just use vanilla java.

kenny