You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-commits@axis.apache.org by ve...@apache.org on 2012/01/09 16:30:36 UTC

svn commit: r1229208 - /axis/axis1/java/trunk/axis-standalone-server/src/main/java/org/apache/axis/server/standalone/StandaloneAxisServer.java

Author: veithen
Date: Mon Jan  9 15:30:36 2012
New Revision: 1229208

URL: http://svn.apache.org/viewvc?rev=1229208&view=rev
Log:
Use graceful shutdown when stopping the embedded Jetty server. This should avoid the sporadic build failure in the integration module.

Modified:
    axis/axis1/java/trunk/axis-standalone-server/src/main/java/org/apache/axis/server/standalone/StandaloneAxisServer.java

Modified: axis/axis1/java/trunk/axis-standalone-server/src/main/java/org/apache/axis/server/standalone/StandaloneAxisServer.java
URL: http://svn.apache.org/viewvc/axis/axis1/java/trunk/axis-standalone-server/src/main/java/org/apache/axis/server/standalone/StandaloneAxisServer.java?rev=1229208&r1=1229207&r2=1229208&view=diff
==============================================================================
--- axis/axis1/java/trunk/axis-standalone-server/src/main/java/org/apache/axis/server/standalone/StandaloneAxisServer.java (original)
+++ axis/axis1/java/trunk/axis-standalone-server/src/main/java/org/apache/axis/server/standalone/StandaloneAxisServer.java Mon Jan  9 15:30:36 2012
@@ -61,6 +61,7 @@ public class StandaloneAxisServer {
         int port = Integer.parseInt(cmdLine.getOptionValue("p"));
         
         Server server = new Server(port);
+        server.setGracefulShutdown(1000);
         Context context = new Context(server, "/axis");
         context.setSessionHandler(new SessionHandler());
         QuitListener quitListener = new QuitListener();