May 5th, 2010, 11:34 AM
is Jaxb2Marshaller thread safe?
The javadoc makes no mention if Jaxb2Marshaller is thread safe. In particular are marshall() / unmarshall() thread safe?
While objects returned from createMarshaller() / createUnmarshaller() are clearly said not to be threadsafe, nothing is said about Jaxb2Marshaller itself.
May 5th, 2010, 03:58 PM
Jaxb2Marshaller methods createMarshaller() and createUnmarshaller() look thread-safe IMHO, the comment on not being thread safe refers to the objects these methods return. If you look at the code, createMarshaller() is called for each marshal() call to avoid thread safety issues for example.
May 5th, 2010, 04:27 PM