Ben
Kumar, Kiran wrote:
I;ve done some research and found that the SessionAttributeGenerator, is using wrong session object ( and data is being shared between multiple sessions)
even though the xml is built correctly, SessionAttributeGenerator is accessing the wrong dom object in session.
1. do we have to Synchronize the generate() method block? 2. are there any known problems in SessionAttributeGenerator
here is the pipeline that uses this generator
<map:match pattern="login">
<map:act type="xml">
<map:act type="simple">
<map:generate type="sess-attr"
label="raw">
<map:parameter
name="attr-name" value="myAttribute"/>
<map:parameter name="style"
value="{style}"/>
<map:parameter name="ETerm"
value="{ETerm}"/>
</map:generate> <map:transform src="{style}.xsl">
<map:parameter
name="use-request-parameters" value="true"/>
<map:parameter
name="dataTemplate" value="{dataTemplate}"/>
<map:parameter name="layout"
value="S1" />
<map:parameter name="wizard"
value="N" />
<map:parameter name="ETerm"
value="{ETerm}"/>
</map:transform>
<map:serialize />
</map:act> </map:act> </map:match>I have somany pipelines like this!!
thanks
Kiran Kumar (Raj)
thanks
Kiran Kumar (Raj)
-----Original Message----- From: Kumar, Kiran [mailto:[EMAIL PROTECTED] Sent: Saturday, April 16, 2005 10:19 AM To: '[email protected]' Subject: RE: DOM objects in session
regarding the same issue, I found in the cocoon users group that by using
the Java Filters with cocoon servlet fixed this problem? could some body give me some examples about how to use the filters
effectively
appreciate your response
thanks
Kiran Kumar
-----Original Message-----
From: Kumar, Kiran Sent: Friday, April 15, 2005 8:13 PM
To: '[email protected]'
Subject: DOM objects in session
I create DOM objects and store them in session. use a session attribute generator to transform the DOM to a HTML using XSL.
here the dom objects are being shared between sessions and I am seeing data from other users or processes.
I used the synchronized blocks when creating xml doms from DocumentBuilderFactory newBuilder().newDocument() etc
is there any way I can resolve this issue??
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
