tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 28159] New: - Servlet destroy methods are called in the wrong order
Date Fri, 02 Apr 2004 14:31:32 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=28159>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=28159

Servlet destroy methods are called in the wrong order

           Summary: Servlet destroy methods are called in the wrong order
           Product: Tomcat 5
           Version: 5.0.19
          Platform: All
        OS/Version: Other
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Catalina
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: Paul.Harvey@fdisolutions.com


If I specify a load order for three servlets in web.xml 

<servlet>      
   <servlet-name>one</servlet-name>
   <servlet-class>ClassOne</servlet-class>
   <load-on-startup>1</load-on-startup>
</servlet>

<servlet>      
   <servlet-name>two</servlet-name>
   <servlet-class>ClassTwo</servlet-class>
   <load-on-startup>2</load-on-startup>
</servlet>

<servlet>      
   <servlet-name>three</servlet-name>
   <servlet-class>ClassThree</servlet-class>
   <load-on-startup>3</load-on-startup>
</servlet>

Then they are initialised one, two, three as expected.  However when tomcat is 
shutdown their destroy methods are called one, two, three rather than three, 
two, one.  This must be wrong as servlet one could create (and destroy) 
resources on which the operation of servlet two (including its destroy method) 
are dependent.

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message