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
Unmarshaller.unmarshal is not thread safe.
From: https://javaee.github.io/jaxb-v2/doc/user-guide/ch03.html#other-miscellaneous-topics-performance-and-thread-safety
The JAXBContext class is thread safe, but the Marshaller, Unmarshaller, and Validator classes are not thread safe.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With