From 232b966ace165bded8fde24624613dd8ec22528d Mon Sep 17 00:00:00 2001 From: antelder Date: Tue, 16 Mar 2010 08:38:43 +0000 Subject: Updates missed from previous commit to update hazelcast two nodes test for sca client api using hazelcast client git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@923627 13f79535-47bb-0310-9956-ffa450edef68 --- .../itest/nodes/two-nodes-two-vms-hazelcast/server-config.xml | 2 +- .../two-nodes-two-vms-hazelcast/src/test/java/itest/Client.java | 2 +- .../src/test/java/itest/SCAClient.java | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/sca-java-2.x/trunk/itest/nodes/two-nodes-two-vms-hazelcast/server-config.xml b/sca-java-2.x/trunk/itest/nodes/two-nodes-two-vms-hazelcast/server-config.xml index f3677523cb..841471f95f 100644 --- a/sca-java-2.x/trunk/itest/nodes/two-nodes-two-vms-hazelcast/server-config.xml +++ b/sca-java-2.x/trunk/itest/nodes/two-nodes-two-vms-hazelcast/server-config.xml @@ -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"> diff --git a/sca-java-2.x/trunk/itest/nodes/two-nodes-two-vms-hazelcast/src/test/java/itest/Client.java b/sca-java-2.x/trunk/itest/nodes/two-nodes-two-vms-hazelcast/src/test/java/itest/Client.java index 57c6d445dd..5d884921fd 100644 --- a/sca-java-2.x/trunk/itest/nodes/two-nodes-two-vms-hazelcast/src/test/java/itest/Client.java +++ b/sca-java-2.x/trunk/itest/nodes/two-nodes-two-vms-hazelcast/src/test/java/itest/Client.java @@ -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(); } diff --git a/sca-java-2.x/trunk/itest/nodes/two-nodes-two-vms-hazelcast/src/test/java/itest/SCAClient.java b/sca-java-2.x/trunk/itest/nodes/two-nodes-two-vms-hazelcast/src/test/java/itest/SCAClient.java index 7e5da0bf0f..81af1c6b5b 100644 --- a/sca-java-2.x/trunk/itest/nodes/two-nodes-two-vms-hazelcast/src/test/java/itest/SCAClient.java +++ b/sca-java-2.x/trunk/itest/nodes/two-nodes-two-vms-hazelcast/src/test/java/itest/SCAClient.java @@ -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 { -- cgit v1.2.3