From 35535ed5b40118aec7514fe7e691fd4087138690 Mon Sep 17 00:00:00 2001 From: rfeng Date: Wed, 28 Jan 2009 00:38:17 +0000 Subject: Fix the port # git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@738322 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/java/calculator/CalculatorClient.java | 14 +++++++++----- .../src/main/resources/Calculator.composite | 4 ++-- 2 files changed, 11 insertions(+), 7 deletions(-) (limited to 'java/sca/samples/binding-ws-calculator') diff --git a/java/sca/samples/binding-ws-calculator/src/main/java/calculator/CalculatorClient.java b/java/sca/samples/binding-ws-calculator/src/main/java/calculator/CalculatorClient.java index c193b2ce66..af01e58e62 100644 --- a/java/sca/samples/binding-ws-calculator/src/main/java/calculator/CalculatorClient.java +++ b/java/sca/samples/binding-ws-calculator/src/main/java/calculator/CalculatorClient.java @@ -42,11 +42,15 @@ public class CalculatorClient { public void calculate() { // Calculate - System.out.println("SCA API ClassLoader: " + print(Reference.class.getClassLoader())); - System.out.println("3 + 2=" + calculatorService.add(3, 2)); - System.out.println("3 - 2=" + calculatorService.subtract(3, 2)); - System.out.println("3 * 2=" + calculatorService.multiply(3, 2)); - System.out.println("3 / 2=" + calculatorService.divide(3, 2)); + try { + System.out.println("SCA API ClassLoader: " + print(Reference.class.getClassLoader())); + System.out.println("3 + 2=" + calculatorService.add(3, 2)); + System.out.println("3 - 2=" + calculatorService.subtract(3, 2)); + System.out.println("3 * 2=" + calculatorService.multiply(3, 2)); + System.out.println("3 / 2=" + calculatorService.divide(3, 2)); + } catch (Throwable e) { + e.printStackTrace(); + } } private static String print(ClassLoader cl) { diff --git a/java/sca/samples/binding-ws-calculator/src/main/resources/Calculator.composite b/java/sca/samples/binding-ws-calculator/src/main/resources/Calculator.composite index 04ea0a259b..d27d09cb8e 100644 --- a/java/sca/samples/binding-ws-calculator/src/main/resources/Calculator.composite +++ b/java/sca/samples/binding-ws-calculator/src/main/resources/Calculator.composite @@ -25,7 +25,7 @@ - + @@ -35,7 +35,7 @@ - + -- cgit v1.2.3