We see in some scenario unmarshall of XML string .. to equivalent JAXB xml object is consuming significant amount of processing time.. is there a way to reduce /tweak this time to minimum - any configurable prameters that can be played with?
Have you tried to re-use the JAXBContext? The JAXBContext is thread-safe and can be re-used.
If you want to further experiment, then you can also try to pool Marshaller and Unmarshaller instances, in order not to have to create new ones all the time. Note that Marshaller and Unmarshaller instances are not thread-safe.
The JavaSE 6 API documentation of Marshaller and Unmarshaller contains a list of the properties connected to respective entity.
Sunder Raman Balakrishnan
Joined: Mar 07, 2007
We will surely try this out... and will let you know the results.. further we are using XMLBeans in some scenario's can you help us how to optimize this load time.. I posted a seperate message in this regard.