1. Cache the descriptors!
import org.exolab.castor.xml.ClassDescriptorResolver; import org.exolab.castor.xml.Unmarshaller; import org.exolab.castor.xml.util.ClassDescriptorResolverImpl;
ClassDescriptorResolver cdr = new ClassDescriptorResovlerImpl();
...
Unmarshaller unm = new Unmarshaller(...); unm.setResolver(cdr);
By reusing the same ClassDescriptorResolver any time you create an Unmarshaller instance, you will be reusing the existing class descriptors previously loaded.
Is this thread-safe?
Stein
----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev
