You should check if you get always the same basket instance when
creating BasketPanel. It looks like this bean behaves as a prototype
scoped bean. Simple solution is to add a static int counter in your
Basket class and increments it by one in Basket constructor call. Then
you will be able to check on your BasketPanel if you got the basket
with the same counter value each time you create this panel.

I think <aop:scoped-proxy/> is not necessary.

PS. Have you defined RequestContextListener in your web.xml? It is
required for request scope and session scope beans:

       <listener>
               <listener-class>

org.springframework.web.context.request.RequestContextListener
               </listener-class>
       </listener>

Daniel

On Feb 1, 2008 12:42 PM, Tormod Øverlier <[EMAIL PROTECTED]> wrote:
>
> Thanks for the quick answer.
>
> I already have <aop:scoped-proxy/> in the bean. In fact, I get the exact
> same result without this tag, because CGLIB is in the classpath.
>
> Do you have any other suggestions?
>
> Tormod
>
>
> Raffaele Cigni wrote:
> >
> > put this "<aop:scoped-proxy/>" in your beans, like:
> >
> > <bean id="bascket" scope="session" class="mypackage.Myclass">
> >         <aop:scoped-proxy/>
> > </bean>
> >
> > Spring manages a proxy for you.
> >
> >
>
> --
> View this message in context: 
> http://www.nabble.com/Session-scoped-Spring-bean-tp15224216p15224914.html
>
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> 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]

Reply via email to