summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk
diff options
context:
space:
mode:
Diffstat (limited to 'sca-java-2.x/trunk')
-rw-r--r--sca-java-2.x/trunk/samples/getting-started/helloworld-scaclient/src/main/java/sample/HelloworldSCAClient.java11
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));
- }
+ }
}