Take a look at the servlet specification [1], section SRV.10 about
application lifecycle events. Instantiation of the listeners are done
by the servlet container, so Spring have nothing to do with that.

Nils-H

[1] - http://jcp.org/aboutJava/communityprocess/final/jsr154/index.html

On Wed, Dec 10, 2008 at 11:17 AM, Stephan Schröder <[EMAIL PROTECTED]> wrote:
>
> I have a Struts 2 webapp with Spring 2.5 as ObjectFactory.
> I have a HttpSessionListener-Class which is configured in web.xml:
>
> <listener>
>  <listener-class>util.servlet.UserTimeoutListener</listener-class>
> </listener>
>
> I assume that
> 1) this class will be instanciated as a singleton.
> 2) Spring will have nothing to do with the instanciation.
>
> Am i right on both accounts?
>
> /Stephan
> --
> View this message in context: 
> http://www.nabble.com/Is-HttpSessionListener-a-singleton-and-or-initialized-by-Spring--tp20932453p20932453.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> 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