diff options
author | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2011-04-05 08:10:53 +0000 |
---|---|---|
committer | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2011-04-05 08:10:53 +0000 |
commit | 8c25960e7cf1786b083eb8463d839b24b5c21be6 (patch) | |
tree | d9190e73756de2614850d2a86d1c5e8fc282f1dd | |
parent | 2fe313d51f7161bb90a44d8cd3f32b57345859a0 (diff) |
Tidy up samples system out printlns
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1088918 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | sca-java-2.x/trunk/samples/getting-started/helloworld-scaclient/src/main/java/sample/HelloworldSCAClient.java | 11 |
1 files changed, 5 insertions, 6 deletions
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)); - } + } } |