Last I left off, I believe that your concerns were valid, but a closer look indicates that only the QNameCache will be recreated on a per thread basis. So the worst case should only be each thread recreating the Qualified Names for a particular element and/or document group.
If you have a test case for me to try, please send it and I would be happy to try it this week.
Let me know if there are other issues.
Thanks,
Dave
David Hooker wrote:
I don't know anything about dom4J internals. Anyone have time to build
a simple test for this? I don't :-(
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:dom4j-user-admin@;lists.sourceforge.net] On Behalf Of Brain, Jim
Sent: Monday, October 28, 2002 10:54 AM
To: 'David Hooker'; 'David D. Lucas'; Brain, Jim
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: [dom4j-user] RE: [dom4j-dev] RE: Thread Safety
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
--
+------------------------------------------------------------+ | David Lucas mailto:ddlucas@;lse.com | | Lucas Software Engineering, Inc. (740) 964-6248 Voice | | Unix,Java,C++,CORBA,XML,EJB (614) 668-4020 Mobile | | Middleware,Frameworks (888) 866-4728 Fax/Msg | +------------------------------------------------------------+ | GPS Location: 40.0150 deg Lat, -82.6378 deg Long | | IMHC: "Jesus Christ is the way, the truth, and the life." | | IMHC: "I know where I am; I know where I'm going." <>< | +------------------------------------------------------------+ Notes: PGP Key Block=http://www.lse.com/~ddlucas/pgpblock.txt IMHO="in my humble opinion" IMHC="in my humble conviction" All trademarks above are those of their respective owners. ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ dom4j-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dom4j-user