Neeme Praks wrote:
> 
> I found that org.apache.jetspeed.portal.cocoon.CocoonRenderer class uses
> static variable to hold the Cocoon engine. What is the reason for doing
> so and is this tread-safe? Could my problems be the result of this?
> 

Don't think so, AFAIK the Cocoon engine is a singleton, it can safely be 
shared.

> I imagine that when two consecutive hits come to the CocoonPortlet and
> this uses _static_ CocoonRenderer to render the content, then both
> requests would get the results of the latter request...?
> 
> Rapha�l, you are the author of this code, can you comment?
> 

Again I don't think so, the transform method, which does the actual work, 
only uses method local variables and these are always thread local.

I think the bug is more likely located in the PortletFactory which maybe 
reuses incorrect memory cache entries.

--
Rapha�l Luta - [EMAIL PROTECTED]


--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to