Re: [S2] Spring: Interceptors, prototype or singleton?

2008-04-15 Thread Randy Burgess
ch using either annotations or XML. Randy > From: Martin Gainty <[EMAIL PROTECTED]> > Reply-To: Struts Users Mailing List > Date: Tue, 15 Apr 2008 17:16:03 -0400 > To: Struts Users Mailing List > Subject: Re: [S2] Spring: Interceptors, prototype or singleton? > > Ye

Re: [S2] Spring: Interceptors, prototype or singleton?

2008-04-15 Thread Martin Gainty
uot;Struts Users Mailing List" Sent: Tuesday, April 15, 2008 9:51 AM Subject: Re: [S2] Spring: Interceptors, prototype or singleton? > Just about every single S2 action I have ever created uses Spring to inject > a service object of some sort into the action. I use Spring for > transac

Re: [S2] Spring: Interceptors, prototype or singleton?

2008-04-15 Thread Randy Burgess
08 21:50:15 -0400 > To: Struts Users Mailing List > Subject: Re: [S2] Spring: Interceptors, prototype or singleton? > > Could you provide a scenario where one bean is injected into another? > > Thanks > M- > - Original Message - > From: "Randy Burgess&

Re: [S2] Spring: Interceptors, prototype or singleton?

2008-04-14 Thread Don Brown
t; > Date: Tue, 15 Apr 2008 01:12:49 +1000 > > > To: Struts Users Mailing List > > Subject: Re: [S2] Spring: Interceptors, prototype or singleton? > > > > > > To clarify, interceptors aren't technically singletons as each > > instance in an interceptor st

Re: [S2] Spring: Interceptors, prototype or singleton?

2008-04-14 Thread Martin Gainty
Could you provide a scenario where one bean is injected into another? Thanks M- - Original Message - From: "Randy Burgess" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Monday, April 14, 2008 3:55 PM Subject: Re: [S2] Spring: Interceptors, prototyp

Re: [S2] Spring: Interceptors, prototype or singleton?

2008-04-14 Thread Randy Burgess
. Regards, Randy Burgess Sr. Web Applications Developer Nuvox Communications > From: Don Brown <[EMAIL PROTECTED]> > Reply-To: Struts Users Mailing List > Date: Tue, 15 Apr 2008 01:12:49 +1000 > To: Struts Users Mailing List > Subject: Re: [S2] Spring: Interceptors, prototype

Re: [S2] Spring: Interceptors, prototype or singleton?

2008-04-14 Thread Martin Gainty
endency Injection you will need an exact match on name, or class-type or constructor HTH Martin - Original Message - From: "GF" <[EMAIL PROTECTED]> To: "Struts Users ML" Sent: Monday, April 14, 2008 8:51 AM Subject: [S2] Spring: Interceptors, prototype or singleton?

RE: [S2] Spring: Interceptors, prototype or singleton?

2008-04-14 Thread Brad A Cupit
: Struts Users Mailing List Subject: Re: [S2] Spring: Interceptors, prototype or singleton? To clarify, interceptors aren't technically singletons as each instance in an interceptor stack gets its own interceptor instance. However, for all requests using that stack, the same interceptor will be

Re: [S2] Spring: Interceptors, prototype or singleton?

2008-04-14 Thread Don Brown
eply-To: Struts Users Mailing List > > Date: Mon, 14 Apr 2008 14:51:25 +0200 > > To: Struts Users ML > > Subject: [S2] Spring: Interceptors, prototype or singleton? > > > > > > In a guide I found on the web, the interceptor was defined as singleton in > >

Re: [S2] Spring: Interceptors, prototype or singleton?

2008-04-14 Thread Randy Burgess
Struts Users Mailing List > Date: Mon, 14 Apr 2008 14:51:25 +0200 > To: Struts Users ML > Subject: [S2] Spring: Interceptors, prototype or singleton? > > In a guide I found on the web, the interceptor was defined as singleton in > the Spring's ApplicationContext. >

[S2] Spring: Interceptors, prototype or singleton?

2008-04-14 Thread GF
In a guide I found on the web, the interceptor was defined as singleton in the Spring's ApplicationContext. If I need to use "changeable" object properties, I need to have it as Prototype, otherwise different requests will result in a object property overwriting. Is there any issues about defining