added hit a key to stop to PartyDemo

This commit is contained in:
Iwein Fuld
2009-01-08 18:42:28 +00:00
parent 3f6c07e15c
commit dc91b9c3b2

View File

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