summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk
diff options
context:
space:
mode:
authorantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2010-03-16 08:38:43 +0000
committerantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2010-03-16 08:38:43 +0000
commit232b966ace165bded8fde24624613dd8ec22528d (patch)
treebf74c3a6ec3fe2bcb147fbfd8467380d9457019b /sca-java-2.x/trunk
parentef64bdf58851e4efec41b570b8e5ad855e6c7ac1 (diff)
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
Diffstat (limited to 'sca-java-2.x/trunk')
-rw-r--r--sca-java-2.x/trunk/itest/nodes/two-nodes-two-vms-hazelcast/server-config.xml2
-rw-r--r--sca-java-2.x/trunk/itest/nodes/two-nodes-two-vms-hazelcast/src/test/java/itest/Client.java2
-rw-r--r--sca-java-2.x/trunk/itest/nodes/two-nodes-two-vms-hazelcast/src/test/java/itest/SCAClient.java8
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">
<!-- Configure the base URIs for a given binding -->
<!-- Each base URI is for a protocol supported by the binding -->
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 {