users@jaxb.java.net

Re: Unmarshaller and threads

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Tue, 04 May 2004 08:45:21 -0700

> I have a servlet that receives incoming xml requests. However, it is only
> one type of xml request and i do not use a validator. Is the Unmarshaller
> not thread safe even if i do not change properties?
> If so, is it really (as i saw in the archives) a lightweight class, or not
> as we see in the FAQ: "creating Unmarshaller could be relatively an
> expensive operation".

The FAQ explains this issue in detail. I suggest you to start with the
way the FAQ shows you, and then tune it later if you find that it is
indeed slow.

If you find the FAQ entry to be unclear, please let us know which part
feels unclear to you.

regards,
--
Kohsuke Kawaguchi
Sun Microsystems                   kohsuke.kawaguchi_at_sun.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
For additional commands, e-mail: users-help_at_jaxb.dev.java.net