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

2008-04-15 Thread Randy Burgess
-0400 To: Struts Users Mailing List user@struts.apache.org 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 [EMAIL PROTECTED] To: Struts Users

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

2008-04-15 Thread Martin Gainty
@struts.apache.org 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 transactions, SLSB's, MDB's, JDBC, Hibernate, you

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

2008-04-15 Thread Randy Burgess
annotations or XML. Randy From: Martin Gainty [EMAIL PROTECTED] Reply-To: Struts Users Mailing List user@struts.apache.org Date: Tue, 15 Apr 2008 17:16:03 -0400 To: Struts Users Mailing List user@struts.apache.org Subject: Re: [S2] Spring: Interceptors, prototype or singleton? Yes very clear

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

2008-04-14 Thread Randy Burgess
Interceptors are Singletons according to the documentation. If it were me I would come up with another method besides Spring for changing object properties. Regards, Randy Burgess Sr. Web Applications Developer Nuvox Communications From: GF [EMAIL PROTECTED] Reply-To: Struts Users Mailing

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

2008-04-14 Thread Don Brown
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 used. Therefore, you do need to be careful. For example, most interceptors take parameters

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

2008-04-14 Thread Brad A Cupit
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 stack gets its own interceptor instance. However, for all requests using that stack, the same interceptor will be used

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

2008-04-14 Thread Martin Gainty
I assume you're speaking of the capabilities of the spring-plugin? http://struts.apache.org/2.x/docs/spring-plugin.html A very good article on Spring BeanFactory scope parameters can be found here: http://www.theserverside.com/tt/articles/article.tss?l=IntrotoSpring25 where Bean Factory scope is

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 user@struts.apache.org Date: Tue, 15 Apr 2008 01:12:49 +1000 To: Struts Users Mailing List user@struts.apache.org Subject: Re: [S2] Spring

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 user@struts.apache.org Sent: Monday, April 14, 2008 3:55 PM Subject: Re: [S2] Spring: Interceptors, prototype

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

2008-04-14 Thread Don Brown
@struts.apache.org 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 used