diff options
Diffstat (limited to 'branches/sca-java-integration/sca/extensions/axis2/samples/helloworld-ws/src/main/java/helloworld/HelloWorldServer.java')
-rw-r--r-- | branches/sca-java-integration/sca/extensions/axis2/samples/helloworld-ws/src/main/java/helloworld/HelloWorldServer.java | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/branches/sca-java-integration/sca/extensions/axis2/samples/helloworld-ws/src/main/java/helloworld/HelloWorldServer.java b/branches/sca-java-integration/sca/extensions/axis2/samples/helloworld-ws/src/main/java/helloworld/HelloWorldServer.java new file mode 100644 index 0000000000..2f09cd77f0 --- /dev/null +++ b/branches/sca-java-integration/sca/extensions/axis2/samples/helloworld-ws/src/main/java/helloworld/HelloWorldServer.java @@ -0,0 +1,28 @@ +package helloworld; + + +import java.io.IOException; + +import org.apache.tuscany.api.SCARuntime; + +public class HelloWorldServer { + + /** + * @param args + */ + public static void main(String[] args) { + + SCARuntime.start("helloworldws.composite"); + + try { + System.out.println("HelloWorld server started"); + System.in.read(); + } catch (IOException e) { + e.printStackTrace(); + } + + SCARuntime.stop(); + System.out.println("HelloWorld server stopped"); + } + +} |