From dc91b9c3b2c9c3db37b178bd273801733f7ff888 Mon Sep 17 00:00:00 2001 From: Iwein Fuld Date: Thu, 8 Jan 2009 18:42:28 +0000 Subject: [PATCH] added hit a key to stop to PartyDemo --- .../integration/samples/errorhandling/PartyDemo.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/org.springframework.integration.samples/src/main/java/org/springframework/integration/samples/errorhandling/PartyDemo.java b/org.springframework.integration.samples/src/main/java/org/springframework/integration/samples/errorhandling/PartyDemo.java index 0fdfec2d10..f35b0392d1 100644 --- a/org.springframework.integration.samples/src/main/java/org/springframework/integration/samples/errorhandling/PartyDemo.java +++ b/org.springframework.integration.samples/src/main/java/org/springframework/integration/samples/errorhandling/PartyDemo.java @@ -15,6 +15,8 @@ package org.springframework.integration.samples.errorhandling; +import java.io.IOException; + import org.springframework.context.support.ClassPathXmlApplicationContext; /** @@ -24,6 +26,14 @@ public class PartyDemo { public static void main(String[] args) { new ClassPathXmlApplicationContext("errorHandlingDemo.xml", PartyDemo.class); + System.out.println("hit key to stop"); + try { + System.in.read(); + } + catch (IOException e) { + throw new RuntimeException(e); + } + System.exit(0); } }