* locate the Calculator service and invoke it.
*/
public class CalculatorClient {
public static void main(String[] args) throws Exception {
CompositeContext context = CurrentCompositeContext.getContext();
CalculatorService calculatorService =
context.locateService(CalculatorService.class, "CalculatorServiceComponent");
// Calculate
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));