[CXF-6186] Make JMS sample match others
Project: http://git-wip-us.apache.org/repos/asf/cxf/repo Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/631a98b5 Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/631a98b5 Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/631a98b5 Branch: refs/heads/3.0.x-fixes Commit: 631a98b5f729dcd2acdc4493c322f32fe50a21a5 Parents: 1630bf6 Author: Daniel Kulp <[email protected]> Authored: Mon Apr 3 14:48:13 2017 -0400 Committer: Daniel Kulp <[email protected]> Committed: Mon Apr 3 14:53:15 2017 -0400 ---------------------------------------------------------------------- .../customerservice/server/CustomerServiceSpringServer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cxf/blob/631a98b5/distribution/src/main/release/samples/jms_spring_config/src/main/java/com/example/customerservice/server/CustomerServiceSpringServer.java ---------------------------------------------------------------------- diff --git a/distribution/src/main/release/samples/jms_spring_config/src/main/java/com/example/customerservice/server/CustomerServiceSpringServer.java b/distribution/src/main/release/samples/jms_spring_config/src/main/java/com/example/customerservice/server/CustomerServiceSpringServer.java index f7e4af9..034eed1 100644 --- a/distribution/src/main/release/samples/jms_spring_config/src/main/java/com/example/customerservice/server/CustomerServiceSpringServer.java +++ b/distribution/src/main/release/samples/jms_spring_config/src/main/java/com/example/customerservice/server/CustomerServiceSpringServer.java @@ -30,9 +30,9 @@ public final class CustomerServiceSpringServer { public static void main(String args[]) throws Exception { ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext("server-applicationContext.xml"); - System.out.println("Server started. Press any key to shut down."); - System.in.read(); + Thread.sleep(5 * 60 * 1000); ctx.close(); + System.out.println("Server exiting"); } }
