Reputation: 3078
I'm using the method
javax.xml.bind.Unmarshaller.unmarshal(Source source, Class<RX> declaredType)
and would like to know if this method is thread safe. Otherwise I will have to instantiate an Unmarshaller on each call
Upvotes: 3
Views: 3365
Reputation: 149047
Unmarshaller.unmarshal
is not thread safe.
The JAXBContext class is thread safe, but the Marshaller, Unmarshaller, and Validator classes are not thread safe.
Upvotes: 10