From 8c25960e7cf1786b083eb8463d839b24b5c21be6 Mon Sep 17 00:00:00 2001 From: antelder Date: Tue, 5 Apr 2011 08:10:53 +0000 Subject: Tidy up samples system out printlns git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1088918 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/java/sample/HelloworldSCAClient.java | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'sca-java-2.x/trunk/samples/getting-started/helloworld-scaclient') diff --git a/sca-java-2.x/trunk/samples/getting-started/helloworld-scaclient/src/main/java/sample/HelloworldSCAClient.java b/sca-java-2.x/trunk/samples/getting-started/helloworld-scaclient/src/main/java/sample/HelloworldSCAClient.java index 9954179e74..0a91fdb70f 100644 --- a/sca-java-2.x/trunk/samples/getting-started/helloworld-scaclient/src/main/java/sample/HelloworldSCAClient.java +++ b/sca-java-2.x/trunk/samples/getting-started/helloworld-scaclient/src/main/java/sample/HelloworldSCAClient.java @@ -32,15 +32,14 @@ public class HelloworldSCAClient { if (domainURI == null || domainURI.length() < 1) { domainURI = "uri:default"; } - System.out.println("HelloworldSCAClient, using domainURI " + domainURI); - - String name = args.length < 1 ? "world" : args[0]; + System.out.println("HelloworldSCAClient, using domainURI " + domainURI); SCAClientFactory factory = SCAClientFactory.newInstance(URI.create(domainURI)); + + String name = args.length < 1 ? "world" : args[0]; + System.out.println("Calling HelloworldComponent.sayHello(\"" + name + "\"):"); Helloworld service = factory.getService(Helloworld.class, "HelloworldComponent"); - - System.out.println("Calling HelloworldComponent.sayHello(\"" + name + "\")"); System.out.println(service.sayHello(name)); - } + } } -- cgit v1.2.3