cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1304374 - in /cxf/trunk/distribution/src/main/release/samples/jms_spring_config/src/main/java/com/example/customerservice: client/CustomerServiceSpringClient.java server/CustomerServiceSpringServer.java
Date Fri, 23 Mar 2012 14:33:52 GMT
Author: dkulp
Date: Fri Mar 23 14:33:52 2012
New Revision: 1304374

URL: http://svn.apache.org/viewvc?rev=1304374&view=rev
Log:
Cleanup the spring contexts

Modified:
    cxf/trunk/distribution/src/main/release/samples/jms_spring_config/src/main/java/com/example/customerservice/client/CustomerServiceSpringClient.java
    cxf/trunk/distribution/src/main/release/samples/jms_spring_config/src/main/java/com/example/customerservice/server/CustomerServiceSpringServer.java

Modified: cxf/trunk/distribution/src/main/release/samples/jms_spring_config/src/main/java/com/example/customerservice/client/CustomerServiceSpringClient.java
URL: http://svn.apache.org/viewvc/cxf/trunk/distribution/src/main/release/samples/jms_spring_config/src/main/java/com/example/customerservice/client/CustomerServiceSpringClient.java?rev=1304374&r1=1304373&r2=1304374&view=diff
==============================================================================
--- cxf/trunk/distribution/src/main/release/samples/jms_spring_config/src/main/java/com/example/customerservice/client/CustomerServiceSpringClient.java
(original)
+++ cxf/trunk/distribution/src/main/release/samples/jms_spring_config/src/main/java/com/example/customerservice/client/CustomerServiceSpringClient.java
Fri Mar 23 14:33:52 2012
@@ -34,6 +34,8 @@ public final class CustomerServiceSpring
         CustomerServiceTester client = (CustomerServiceTester)context.getBean("tester");
         
         client.testCustomerService();
-        System.exit(0);
+        context.stop();
+        context.destroy();
+        //System.exit(0);
     }
 }

Modified: cxf/trunk/distribution/src/main/release/samples/jms_spring_config/src/main/java/com/example/customerservice/server/CustomerServiceSpringServer.java
URL: http://svn.apache.org/viewvc/cxf/trunk/distribution/src/main/release/samples/jms_spring_config/src/main/java/com/example/customerservice/server/CustomerServiceSpringServer.java?rev=1304374&r1=1304373&r2=1304374&view=diff
==============================================================================
--- cxf/trunk/distribution/src/main/release/samples/jms_spring_config/src/main/java/com/example/customerservice/server/CustomerServiceSpringServer.java
(original)
+++ cxf/trunk/distribution/src/main/release/samples/jms_spring_config/src/main/java/com/example/customerservice/server/CustomerServiceSpringServer.java
Fri Mar 23 14:33:52 2012
@@ -26,7 +26,9 @@ public class CustomerServiceSpringServer
     }
 
     public static void main(String args[]) throws Exception {
-        new ClassPathXmlApplicationContext("server-applicationContext.xml");
+        ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext("server-applicationContext.xml");
         System.in.read();
+        ctx.stop();
+        ctx.destroy();
     }
 }



Mime
View raw message