users@jaxb.java.net

Re: jaxb.properties and bgm.ser files in a jar

From: zhidong zhao <zzhao_at_CS.UNO.EDU>
Date: Mon, 27 Jan 2003 14:24:42 -0700

After many unsuccessful trails I found the best way is not to create an new instance of jaxbcontext, where you get lots of strange (and stupid) exceptions regarding properties and bgm.ser, but create an ObjectFactory object which comes with the compiled package. In fact ObjectFactory is an extension of JAXBContext class. You can use ObjectFactory in places whereever jaxbcontext is needed, such as create objects or marshaller/unmarshaller/validator. The api example code was misleading.