You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by an...@apache.org on 2010/03/16 09:38:43 UTC

svn commit: r923627 - in /tuscany/sca-java-2.x/trunk/itest/nodes/two-nodes-two-vms-hazelcast: server-config.xml src/test/java/itest/Client.java src/test/java/itest/SCAClient.java

Author: antelder
Date: Tue Mar 16 08:38:43 2010
New Revision: 923627

URL: http://svn.apache.org/viewvc?rev=923627&view=rev
Log:
Updates missed from previous commit to update hazelcast two nodes test for sca client api using hazelcast client

Modified:
    tuscany/sca-java-2.x/trunk/itest/nodes/two-nodes-two-vms-hazelcast/server-config.xml
    tuscany/sca-java-2.x/trunk/itest/nodes/two-nodes-two-vms-hazelcast/src/test/java/itest/Client.java
    tuscany/sca-java-2.x/trunk/itest/nodes/two-nodes-two-vms-hazelcast/src/test/java/itest/SCAClient.java

Modified: tuscany/sca-java-2.x/trunk/itest/nodes/two-nodes-two-vms-hazelcast/server-config.xml
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/itest/nodes/two-nodes-two-vms-hazelcast/server-config.xml?rev=923627&r1=923626&r2=923627&view=diff
==============================================================================
--- tuscany/sca-java-2.x/trunk/itest/nodes/two-nodes-two-vms-hazelcast/server-config.xml (original)
+++ tuscany/sca-java-2.x/trunk/itest/nodes/two-nodes-two-vms-hazelcast/server-config.xml Tue Mar 16 08:38:43 2010
@@ -22,7 +22,7 @@
     xmlns:tuscany="http://tuscany.apache.org/xmlns/sca/1.1"
     uri="http://sample/nodes/TestNode2"
     domain="default"
-    domainRegistry="tuscany:default">
+    domainRegistry="tuscany:default?listen=127.0.0.1:14820">
 
     <!-- Configure the base URIs for a given binding -->
     <!-- Each base URI is for a protocol supported by the binding -->

Modified: tuscany/sca-java-2.x/trunk/itest/nodes/two-nodes-two-vms-hazelcast/src/test/java/itest/Client.java
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/itest/nodes/two-nodes-two-vms-hazelcast/src/test/java/itest/Client.java?rev=923627&r1=923626&r2=923627&view=diff
==============================================================================
--- tuscany/sca-java-2.x/trunk/itest/nodes/two-nodes-two-vms-hazelcast/src/test/java/itest/Client.java (original)
+++ tuscany/sca-java-2.x/trunk/itest/nodes/two-nodes-two-vms-hazelcast/src/test/java/itest/Client.java Tue Mar 16 08:38:43 2010
@@ -34,7 +34,7 @@ public class Client {
 
     @BeforeClass
     public static void setUpBeforeClass() throws Exception {
-        clientNode = NodeFactory.newInstance().createNode(URI.create("tuscany:default"), "../helloworld-client/target//classes");
+        clientNode = NodeFactory.newInstance().createNode(URI.create("tuscany:default?listen=127.0.0.1:14821"), "../helloworld-client/target//classes");
         clientNode.start();
     }
 

Modified: tuscany/sca-java-2.x/trunk/itest/nodes/two-nodes-two-vms-hazelcast/src/test/java/itest/SCAClient.java
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/itest/nodes/two-nodes-two-vms-hazelcast/src/test/java/itest/SCAClient.java?rev=923627&r1=923626&r2=923627&view=diff
==============================================================================
--- tuscany/sca-java-2.x/trunk/itest/nodes/two-nodes-two-vms-hazelcast/src/test/java/itest/SCAClient.java (original)
+++ tuscany/sca-java-2.x/trunk/itest/nodes/two-nodes-two-vms-hazelcast/src/test/java/itest/SCAClient.java Tue Mar 16 08:38:43 2010
@@ -31,13 +31,13 @@ public class SCAClient {
 
     public void testSCAClient() throws Exception {
         // The configuration required when running with sca-client-rmi and endpoint-hazelcast-rmi
-        //SCAClientFactory factory = SCAClientFactory.newInstance(URI.create("tuscanyclient:default?remotes=192.168.247.1:14820"));
+        SCAClientFactory factory = SCAClientFactory.newInstance(URI.create("tuscanyclient:default?remotes=127.0.0.1:14820"));
         
         // The configuration required when running with sca-client-impl and endpoint-hazelcast
-        SCAClientFactory factory = SCAClientFactory.newInstance(URI.create("tuscany:default"));
+        //SCAClientFactory factory = SCAClientFactory.newInstance(URI.create("tuscany:default"));
         
         // Sleep 3 seconds so that the endpoint is populated into the EndpointRegistry
-        Thread.sleep(3000);
+        //Thread.sleep(3000);
         
         Helloworld service = factory.getService(Helloworld.class, "HelloworldService");
         
@@ -56,7 +56,7 @@ public class SCAClient {
         //       for doing this so we may need to talk to OASIS about adding one
         //       or just rely on the runtime hosting the classes using the SCAClient
         //       when it's on its way down
-        NodeFactory.getInstance().destroy();
+        //NodeFactory.getInstance().destroy();
     }
    
     public static void main(String[] args) throws Exception {