JAXBConversionManager.java has unmarshal methodpublic class JAXBConversionManager{ @SuppressWarnings("unchecked") public <T> T unmarshal(Document msg) { //convert from xml to object and return } }
both above classes are using jaxbConversionManager object.
Document message passed to method1() from Class1 was actually visible in Class2.method2() , i was able to confirm that in the log statement
LOGGER.info("Customer object2 is", customer.toString()); --> prints message which came to method1
This is most probably because jaxbConversionManager is not threadsafe. Any idea how i can make it threadsafe in a spring way.