Hi,
I was using Castor 1.2 when reading the discussions around memory leaks and
single time initialization, i decided to move on to Castor 1.3.
Currently facing couple of issues which i have to resolve soon.
1. I am using XMLContext to get an instance of UnMarshaller as specified in
the best practices.
Also, i am trying to use the XMLClassDescriptorResolver as mentioned in
one of the posts by Werner
Mapping mapping = new Mapping();
mapping.loadMapping(...);
ClassDescriptorResolver classDescriptorResolver =
ClassDescriptorResolverFactory
.createClassDescriptorResolver(BindingType.XML);
MappingUnmarshaller mappingUnmarshaller = new MappingUnmarshaller();
MappingLoader mappingLoader = mappingUnmarshaller.getMappingLoader(
mapping, BindingType.XML);
classDescriptorResolver.setMappingLoader(mappingLoader);
But i am getting a NullPointer in setMappingLoader().
2) I have couple of big xmls which needs to be unmarshalled, but the same
takes around 5-7 secs to unmarshall..Any ways of improving the performance?
Just to bring to your notice, we do not map the entire xml to our data
objects..only required attributes from the xml are mapped to fields in Java
object through the mapping xml.
--
View this message in context:
http://www.nabble.com/Castor-XML-UNMarshalling-Performance-tp25311975p25311975.html
Sent from the Castor - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email