[Hibernate] dom4j threadlocal issues

2005-04-01 Thread Max Rydahl Andersen
FYI I post the following on the forum http://forum.hibernate.org/viewtopic.php?p=2236676#2236676 btw. I went and looked at the cvs version of dom4j (which seems to run the h3 unittests without problems) This cvs version does not seem to contain the bug anymore since they now have weakrefere

Re: [Hibernate] dom4j threadlocal issues

2005-04-01 Thread Max Rydahl Andersen
On Fri, 01 Apr 2005 16:48:48 +0200, baliuka juozas <[EMAIL PROTECTED]> wrote: but anyhow they claim to have fixed itnot just weakref stuff. /max All thread locals are weak (it is implemented as weak hash map). BTW http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5033614 --- Max Rydahl And

Re: [Hibernate] dom4j threadlocal issues

2005-04-01 Thread baliuka juozas
Probably they are right, thread local can be a problem with thread pool ( reference on thread is weak, but it strong on value ). webapp must clear all thread locals at the end of request for this reason. Similar problem can be in cglib with thread local callbacks, but it looks like hibernate doe's