struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stanl...@gmail.com
Subject Re: Spring Action Instantiation
Date Wed, 20 Jun 2007 13:38:32 GMT
I'm using Spring 2.x and the attribute scope="prototype"

On 6/19/07, Zarar Siddiqi <zarars@gmail.com> wrote:
>
>
> It sounds to me like your Action class might be configured as a singleton.
> If that's the case the action class' constructor would only be called once
> on startup.  Make sure you have singleton="false" in your Spring config
> for
> the action class.  The default value for singleton is true.
>
>
>
> stanlick wrote:
> >
> > It appears as though I am not getting a new Action instance created for
> > each
> > request!  I have placed a logging statement in the constructor of my
> > Action
> > class and it is not emitting output.  The Bean inside the Action *is*
> > emitting log statements from its constructor so I must have the Spring
> > beans
> > wired correctly.  I am injecting both the Actions and Action Beans via
> > Spring.  I have scope=prototype on them both.
> >
> > Any ideas?
> >
> > Thanks,
> > Scott
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Spring-Action-Instantiation-tf3948840.html#a11205652
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


-- 
Scott
stanlick@gmail.com

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message