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]

Reply via email to