Hi,
 
We are thinking of using Castor in one of our projects. Since we already have java beans defined , we want to use castor only for ummarshalling. . We did a performance comparision with DOM model. Even though Castor is built over the top SAX 2 API, we observed DOM is performing better than Castor. Surprisigly , we observed that Castor is consuming more memory than DOM. We are using mapping file for generating the business objects.
 
We tried with all the options like disabling the validation etc.
Sample Code. We are loading this code as a Singleton object.

private MessageUnMarshaller() throws Exception {

Mapping mapping = new Mapping();

mapping.loadMapping("/util/temp/yesmapping.xml");

unmarshaller = new Unmarshaller();

unmarshaller.setIgnoreExtraElements(true);

unmarshaller.setIgnoreExtraAttributes(true);

unmarshaller.setValidation(false);

unmarshaller.setMapping(mapping);

}

Any inputs on this is highly appreciated.
 
 
Thanks and Regards,
Jagadish


Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard

Reply via email to