Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

Antwort: Re: execution order of context listener and servlets

Ulrich Kleeberger

2003-12-03



thanks for the info bill.



                                                                                         
              "Bill Barker"                                                                  
              <wbarker@(protected)                                
              .com>             Kopie:                                                      
              Gesendet von:        Thema:   Re: execution order of context listener and servlets                
              news                                                                        
              <news@(protected)                                                                
              rg>                                                                        
                                                                                         
                                                                                         
              03.12.03 09:58                                                                  
              Bitte antworten                                                                
              an "Tomcat Users                                                                
              List"                                                                        
                                                                                         
                                                                                         




In the Servlet-2.4 spec (aka Tomcat 5), it explicitly specifies Tomcat's
order. @See section 9.12. It isn't explicitly specified in the
Servlet-2.3
spec, so technically oracle isn't wrong. However, because of the spec
change, they will have to match Tomcat's order in their Servlet-2.4
release.

<Ulrich.Kleeberger@(protected)
news:OFD45F648B.A3D167BE-ONC1256DF1.0027D736-C1256DF1.0028BB48@(protected)..
.
> hi guys,
>
> i have a question about der execution order of the
> ServletContextListener.contextInitialized() method and the init() method
of
> an servlet.
>
> In my web.xml i have a servlet with load
> <load-on-startup>1</load-on-startup> declared.
> besides i have declared an ServletContextListener.
>
> in tomcat the ServletContextListener executes first and then der init()
> method of the servlet.
>
> in ias (oracle) the servlets init() method executes first and then the
> ServletContextListener.
>
> i thought the ServletContextListener has to execute first.
> is this right or am i missing something?
>
> servus uli




---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)







---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)



©2008 junlu.com - Jax Systems, LLC, U.S.A.