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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]