-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
@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
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
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
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
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
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
.
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
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
@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
10 matches
Mail list logo