cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Torsten Curdt <>
Subject Re: Problem with sharing sessions/ multithreading
Date Sat, 16 Apr 2005 20:08:46 GMT
Kumar, Kiran wrote:
> Hi all
> this is  a problem I am working on.  and I need to fix this ASAP.
> we have a website with thousands of users logging in to check their account
> information.
> we are using Cocoon 2.1 version. we 
> also tried no-cache on all the stylesheets. It did not work and according to
> the Web-Team this is taking longer time to load the pages with lots of
> images.
> we had synchronized the code which creates the xml DOM objects using 
> here is the action templates we use


please elaborate a bit more on the problem you are facing.


> 		DocumentBuilderFactory dbf =
> DocumentBuilderFactory.newInstance();

Since you create a new instance of the DBF
there is no need for the synchronization.
Only the access to the DBF is not guarantied
to be threadsafe AFAIK.

> 		synchronized(dbf) {
> 			doc = dbf.newDocumentBuilder().newDocument();
> 		}


View raw message