cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1304418 - /cxf/branches/2.5.x-fixes/distribution/src/main/release/samples/jms-spec-demo/src/main/java/demo/jms_greeter/client/Client.java
Date Fri, 23 Mar 2012 15:15:39 GMT
Author: dkulp
Date: Fri Mar 23 15:15:38 2012
New Revision: 1304418

URL: http://svn.apache.org/viewvc?rev=1304418&view=rev
Log:
Merged revisions 1303160 via  git cherry-pick from
https://svn.apache.org/repos/asf/cxf/trunk

........
  r1303160 | dkulp | 2012-03-20 17:21:44 -0400 (Tue, 20 Mar 2012) | 3 lines

  With JMS, it helps to close the proxy pre-emptively to allow the JMS
  broker connection to cleanup cleanly.

........

Modified:
    cxf/branches/2.5.x-fixes/distribution/src/main/release/samples/jms-spec-demo/src/main/java/demo/jms_greeter/client/Client.java

Modified: cxf/branches/2.5.x-fixes/distribution/src/main/release/samples/jms-spec-demo/src/main/java/demo/jms_greeter/client/Client.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.5.x-fixes/distribution/src/main/release/samples/jms-spec-demo/src/main/java/demo/jms_greeter/client/Client.java?rev=1304418&r1=1304417&r2=1304418&view=diff
==============================================================================
--- cxf/branches/2.5.x-fixes/distribution/src/main/release/samples/jms-spec-demo/src/main/java/demo/jms_greeter/client/Client.java
(original)
+++ cxf/branches/2.5.x-fixes/distribution/src/main/release/samples/jms-spec-demo/src/main/java/demo/jms_greeter/client/Client.java
Fri Mar 23 15:15:38 2012
@@ -19,6 +19,7 @@
 
 package demo.jms_greeter.client;
 
+import java.io.Closeable;
 import java.io.File;
 
 import javax.xml.namespace.QName;
@@ -63,6 +64,9 @@ public final class Client {
         System.out.println("No response from server as method is OneWay");
         System.out.println();
 
+        if (greeter instanceof Closeable) {
+            ((Closeable)greeter).close();
+        }
         System.exit(0);
     }
 }



Mime
View raw message