I see a problem. If thread A creates a namespace and adds it to the Cache, then the doc is handed off to another thread and the new thread adds some more data, the cache would not be there, as a new document factory would be in place.
Now, though, it may not matter, other than some duplicated cache entries, but I don't know. Jim Jim Brain, [EMAIL PROTECTED] "Researching tomorrow's decisions today." (319) 369-2070 (work) SYSTEMS ARCHITECT, ITS, AEGON FINANCIAL PARTNERS -----Original Message----- From: David Hooker [mailto:dhooker@;a4networks.com] Sent: Monday, October 28, 2002 10:31 AM To: 'David D. Lucas'; 'Brain, Jim' Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [dom4j-dev] RE: Thread Safety This concerns me: "The expectation is still the same. You only operate on a document / element in the same thread throughout the life of that document/element. The changes to the document factory I made, converts it from a singleton, to a singleton per thread. That final change actually allowed our threading tests to pass." In my code, I do a lot of "handing off" of Documents from one thread to another. Any multi-threaded access to the same document are carefully synchronized, or they are only retrieving values from the document. In these cases, there should be no problems, correct? ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ dom4j-dev mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dom4j-dev