Hi All,
I have a new Marshaller object for each occasion of writing an XML file, having found through various google and codehaus searches that the Marshaller/Unmarshallers are not thread safe. However, I was looking to use a singleton org.exolab.castor.mapping.Mapping instance from which to set my Marshaller, and I found a class: org.apache.jetspeed.util.SynchronizedMapping With the description: public class SynchronizedMapping extends org.exolab.castor.mapping.Mapping Thread safe wrapper for the castor Mapping class. This wrapper serializes all thread access to the loadMapping() methods. At: http://portals.apache.org/jetspeed-1/apidocs/org/apache/jetspeed/util/Sy nchronizedMapping.html It sounds useful, but it seems excessive to download the whole of JetSpeed just for that one class. Is there any communication between Castor and Apache on this subject? Will a SynchronizedMapping class be available in future Castor downloads? It seems to have a pretty generic utility value. Meanwhile, I guess I should stick with synchronized(mapping) { marshaller.setMapping(mapping); } I guess... Thanks Stewart ------------------------------------------------- If you wish to unsubscribe from this list, please send an empty message to the following address: [EMAIL PROTECTED] -------------------------------------------------

