Carsten Ziegeler wrote:
If the problem is related to some (Interited)ThreadLocals which haven't the proper value, what about providing a ThreadPool component in Cocoon that cleanly manages these values, so that applications requiring thread do not have to wonder about it ?Hi,there were some problems with multi-threading and the environment stack which should be fixed by last monday - at least that's what I thought. However, there is one subtle thing to keep in mind: ThreadLocal and InheritableThreadLocal variables! The current environment stack uses a InheritableThreadLocal variable - so you have to make sure that if you create/use a different thread that this InheritableThreadLocal variable is initialized correctly. Especially when you use thread-pools you have to manually set this variable (contained in the CocoonComponentManager) whenever you take a thread out of the pool and use it. Is it possible, that your problems are related to this?
-----Original Message-----
From: Greg Weinger [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 04, 2002 4:23 AM
To: cocoon-dev
Subject: [SHOWSTOPPER?] cocoon sources no longer thread-safe
<snip/>
MY QUESTION ----------------------------- 1) Is any of this ringing a bell? Any clues? Sylvain?
I'm honored you ping me, but why me in particular (just curious) ?
Ah, yes, please, please ! I'm very interested in this since I need parallel aggregation for a projet I'm currently working on.I know this is difficult to test without a sample. My hope is that the problem is significant enough to you committers to warrant fixing now. I would be happy to put together a test case and example for you to debug on your own system. Also, I would love to donate the AsynchronousCIncludeTransformer. It's slightly over-componentized at the moment, but I'll send it to anyone interested.
And since you kindly propose to donate it, I can also help the migration to Cocoon's CVS.
Thanks,
Sylvain
--
Sylvain Wallez Anyware Technologies
http://www.apache.org/~sylvain http://www.anyware-tech.com
{ XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects }
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]