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); } }