On 20/06/07, Dave Newton <[EMAIL PROTECTED]> wrote:
?!


I didn't understand a word of that either :-)

--- Martin Gainty <[EMAIL PROTECTED]> wrote:

> Assuming Spring is your AOP framework
> Logging is now an Advised entity
> to be injected at compile time or runtime via
> 'pointcut'
> details on implementation are located here
> http://www.devx.com/Java/Article/30799/0/page/1
>
> to quote
> 'Because this FactoryBean concept is how Spring
> wraps beans and then creates
> a proxy for the bean (using some internal tool such
> as dynamic proxies,
> CGLIB, etc.) that executes some advice on method
> calls when the pointcut
> says the method is a joinpoint (assuming a pointcut
> is defined). '
>
> M--
> This email message and any files transmitted with it
> contain confidential
> information intended only for the person(s) to whom
> this email message is
> addressed.  If you have received this email message
> in error, please notify
> the sender immediately by telephone or email and
> destroy the original
> message without making a copy.  Thank you.
>
> ----- Original Message -----
> From: <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List"
> <user@struts.apache.org>
> Sent: Wednesday, June 20, 2007 9:45 AM
> Subject: Re: Spring Action Instantiation
>
>
> >I replaced the spring bean id in my action mapping
> with the fully qualified
> > class name to rule Spring out completely.  I am
> still never seeing the
> > log4j
> > output in the constructor of my action class!  I
> have double checked my
> > log4j.properties and the debug output would be
> written out if the
> > constructor were called.
> >
> > Any ideas?  Could this have anything to do with an
> interceptor?
> >
> > On 6/20/07, [EMAIL PROTECTED]
> <[EMAIL PROTECTED]> wrote:
> >>
> >> I'm using Spring 2.x and the attribute
> scope="prototype"
> >>
> >> On 6/19/07, Zarar Siddiqi <[EMAIL PROTECTED] >
> 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:
> [EMAIL PROTECTED]
> >> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> >> >
> >> >
> >>
> >>
> >> --
> >> Scott
> >> [EMAIL PROTECTED]
> >
> >
> >
> >
> > --
> > Scott
> > [EMAIL PROTECTED]
> >
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
>
>




____________________________________________________________________________________
Sick sense of humor? Visit Yahoo! TV's
Comedy with an Edge to see what's on, when.
http://tv.yahoo.com/collections/222

---------------------------------------------------------------------
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