diff options
Diffstat (limited to '')
2 files changed, 2 insertions, 2 deletions
diff --git a/java/sca/samples/calculator-rmi-reference/src/test/java/calculator/CalculatorRMIReferenceTestCase.java b/java/sca/samples/calculator-rmi-reference/src/test/java/calculator/CalculatorRMIReferenceTestCase.java index f14191c411..b7aa70f122 100644 --- a/java/sca/samples/calculator-rmi-reference/src/test/java/calculator/CalculatorRMIReferenceTestCase.java +++ b/java/sca/samples/calculator-rmi-reference/src/test/java/calculator/CalculatorRMIReferenceTestCase.java @@ -46,7 +46,7 @@ public class CalculatorRMIReferenceTestCase { Registry rmiRegistry = LocateRegistry.createRegistry(8099);
rmiRegistry.bind("CalculatorRMIService", rmiCalculatorImpl);
- String uri = ContributionLocationHelper.getContributionLocation("CalculatorRMIReference.composite");
+ String uri = ContributionLocationHelper.getContributionLocation(CalculatorService.class);
Contribution contribution = new Contribution("c1", uri);
node = NodeFactory.newInstance().createNode("CalculatorRMIReference.composite", contribution);
node.start();
diff --git a/java/sca/samples/calculator-rmi-service/src/test/java/calculator/CalculatorRMIServerTestCase.java b/java/sca/samples/calculator-rmi-service/src/test/java/calculator/CalculatorRMIServerTestCase.java index aafde63738..eb824679a8 100644 --- a/java/sca/samples/calculator-rmi-service/src/test/java/calculator/CalculatorRMIServerTestCase.java +++ b/java/sca/samples/calculator-rmi-service/src/test/java/calculator/CalculatorRMIServerTestCase.java @@ -40,7 +40,7 @@ public class CalculatorRMIServerTestCase { @BeforeClass
public static void setUp() throws Exception {
- String uri = ContributionLocationHelper.getContributionLocation("CalculatorRMIServer.composite");
+ String uri = ContributionLocationHelper.getContributionLocation(CalculatorService.class);
Contribution contribution = new Contribution("c1", uri);
node = NodeFactory.newInstance().createNode("CalculatorRMIServer.composite", contribution);
node.start();
|