You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cactus-dev@jakarta.apache.org by vm...@apache.org on 2004/08/17 12:35:58 UTC

cvs commit: jakarta-cactus/framework/src/java/share-13-14/org/apache/cactus/extension/jetty JettyTestSetup.java

vmassol     2004/08/17 03:35:57

  Modified:    framework/src/java/share-13-14/org/apache/cactus/extension/jetty
                        JettyTestSetup.java
  Log:
  In jetty a server must be stopped and destroyed to stop it completely.
  
  Revision  Changes    Path
  1.2       +8 -2      jakarta-cactus/framework/src/java/share-13-14/org/apache/cactus/extension/jetty/JettyTestSetup.java
  
  Index: JettyTestSetup.java
  ===================================================================
  RCS file: /home/cvs/jakarta-cactus/framework/src/java/share-13-14/org/apache/cactus/extension/jetty/JettyTestSetup.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- JettyTestSetup.java	22 May 2004 11:34:48 -0000	1.1
  +++ JettyTestSetup.java	17 Aug 2004 10:35:57 -0000	1.2
  @@ -255,10 +255,16 @@
               boolean started = ((Boolean) this.server.getClass().getMethod(
                   "isStarted", null).invoke(this.server, null)).booleanValue(); 
   
  -            // Stop the Jetty server, if started
  +            // Stop and destroy the Jetty server, if started
               if (started)
               {
  +                // Stop all listener and contexts
                   this.server.getClass().getMethod("stop", null).invoke(
  +                    this.server, null);
  +
  +                // Destroy a stopped server. Remove all components and send 
  +                // notifications to all event listeners.  
  +                this.server.getClass().getMethod("destroy", null).invoke(
                       this.server, null);
               }
           } 
  
  
  

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