> Note also that the parse method is static so it would be pretty brutal> if it 
> weren't thread safe. :-)I agree.  But I didn't know for sure.
The way I am planning to use it is pretty vanilla.  I will be receiving 
independent xml documents back from a web service and unmarshaling each of them 
into unique XmlObject instances.
Thanks for responding.  If anyone else has any feedback as well, please let me 
know.
Andy

> Date: Mon, 6 Dec 2010 15:10:13 -0500
> From: rocketra...@fastmail.fm
> To: andrh...@hotmail.com
> CC: dev@xmlbeans.apache.org
> Subject: Re: Thread safety question
> 
> On 12/06/2010 11:57 AM, Andy wrote:
> > Hi,
> > I posted this question on the user mailing list but I'm not sure if
> > the answer I got was accurate so I thought to ask the developer list.
> > 
> > Is *XmlObject.Factory.parse() *thread-safe?  I have many concurrent
> > threads calling this method and want to make sure each thread is
> > getting back what it is supposed to.
> 
> I'm not an XmlBeans developer but... I've never had a problem with
> concurrent threads calling the parse method. Now obviously if the
> input value is mutable e.g. a node, then presumably that input object
> shouldn't be modified by another thread.
> 
> Note also that the parse method is static so it would be pretty brutal
> if it weren't thread safe. :-)
> 
> Cheers,
> Raman
                                          

Reply via email to