Title: Thread safety

How can I get the best performance from castor in a multithreaded environment?    I noticed that in the javadocs it states that the Marshaller class is not thread safe.  Is this the case even if the concurrent threads are only invoking the marshal instance method?  Even if the Marshaller class is not thread safe I am guessing that the Mapping class is thread safe and I can reuse it on each new Marshaller I create.  If not it seems like it would be a large performance cost to load the mapping files each time an object is marshalled. 

Any advice would be greatly appreciated.

Thanks.

-karl

Reply via email to