Thanks :)

- Magnus

-----Original Message-----
From: Reinhard Pötz [mailto:[EMAIL PROTECTED] 
Sent: 13. november 2008 11:57
To: [email protected]
Subject: Re: [2.2] StatelessAppleController and problem with users sharing 
variables across sessions and requests

Magnus Haraldsen Amundsen wrote:
> Our Cocoon webapp shares class variables across sessions and request, so
> that ie. two users access the same URL at the same time, both users gets
> the same privileges even if one of them are logged in as administrator
> and the other as a regular user. What can be the cause of this?
> 
> Example sitemap snippet:
> <map:match pattern="">
> 
>   <map:call
> function="com.computas.sublima.app.controller.admin.TopicController">
>     <map:parameter name="mode" value="browse"/>
>   </map:call>
> </map:match>
> 
> Should'nt this create a unique TopicController object per request?

Hi Magnus,

check that the bean definition of your controller *explicitly* sets the
scope to "prototype" to override the default 'singleton'.

See
http://static.springframework.org/spring/docs/2.5.x/reference/beans.html#beans-factory-scopes-prototype


-- 
Reinhard Pötz                           Managing Director, {Indoqa} GmbH
                         http://www.indoqa.com/en/people/reinhard.poetz/

Member of the Apache Software Foundation
Apache Cocoon Committer, PMC member                  [EMAIL PROTECTED]
________________________________________________________________________

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Vi har flyttet til nye lokaler på Lysaker Torg 45.  I den forbindelse har vi 
gått over til mobil telefonløsning. For kontakt med ansatte i Computas kan du 
ringe vårt sentralbord på samme telefonnummer som tidligere, 67 83 10 00 eller 
direkte på deres mobiltelefon. Vårt faksnummer er også uendret, 67 83 10 01.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to