tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From antel...@apache.org
Subject svn commit: r1088918 - /tuscany/sca-java-2.x/trunk/samples/getting-started/helloworld-scaclient/src/main/java/sample/HelloworldSCAClient.java
Date Tue, 05 Apr 2011 08:10:53 GMT
Author: antelder
Date: Tue Apr  5 08:10:53 2011
New Revision: 1088918

URL: http://svn.apache.org/viewvc?rev=1088918&view=rev
Log:
Tidy up samples system out printlns

Modified:
    tuscany/sca-java-2.x/trunk/samples/getting-started/helloworld-scaclient/src/main/java/sample/HelloworldSCAClient.java

Modified: tuscany/sca-java-2.x/trunk/samples/getting-started/helloworld-scaclient/src/main/java/sample/HelloworldSCAClient.java
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/samples/getting-started/helloworld-scaclient/src/main/java/sample/HelloworldSCAClient.java?rev=1088918&r1=1088917&r2=1088918&view=diff
==============================================================================
--- tuscany/sca-java-2.x/trunk/samples/getting-started/helloworld-scaclient/src/main/java/sample/HelloworldSCAClient.java
(original)
+++ tuscany/sca-java-2.x/trunk/samples/getting-started/helloworld-scaclient/src/main/java/sample/HelloworldSCAClient.java
Tue Apr  5 08:10:53 2011
@@ -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));
-    }
+     }
     
 }



Mime
View raw message