Community
Participate
Working Groups
Currently the MOXy DOMHandlerConverter is holding onto a single instance of Transformer. Since the DOMHandlerConverter can be used concurrently by multiple threads this means its usage of Transformer is not thread-safe according to the Javadocs for Transformer: From: http://download.oracle.com/javase/6/docs/api/javax/xml/transform/Transformer.html "An object of this class may not be used in multiple threads running concurrently. Different Transformers may be used concurrently by different threads."
Created attachment 206855 [details] MOXy - Fix Create a new instance of Transformer per conversion operation to ensure that Transformer is used in a thread safe manner.
Fix checked into trunk at rev: 10377 Fix checked into 2.3.2 at rev: 10378 Code Reviewed By: Matt MacIvor Fix Details: Create a new Transformer per operation instead of reusing the same one to ensure thread-safety.
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink