users@jaxb.java.net

Re: JAXB, ClassLoaders and Web apps

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Mon, 23 Jun 2003 13:05:06 -0700

> you are right.
> the sun implementation uses the thread's context class loader.
> however, i did not see the spec mandate this so if you want to be on the
> safe side maybe its better to explicitly use the method with the class
> loader input parameter.

Well, the behavior of JAXBContext.newInstance(String) belongs to the
spec, not an implementation. So that behavior is guaranteed for any JAXB
implementation.

--
Kohsuke Kawaguchi <kohsuke.kawaguchi_at_sun.com>