Hi David,
This class is not thread-safe! If you have multiple threads accessing the same XPath instance, you should synchronized it yourself.
However, it might be possible that you can run xpath queries in parallell *on one document* using the same instance of DefaultXPath (I did not test it though, so I could be wrong).
regards, Maarten
David J. M. Karlsen schreef:
Is this class threadsafe? (eg. can I have a static instance in my class shared by all classinstances, running in parallell on different threads)
------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ dom4j-user mailing list dom4j-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dom4j-user