FileDocCategorySizeDatePackage
Client.javaAPI DocJBoss 4.2.11653Fri Jul 13 20:55:20 BST 2007org.jboss.tutorial.stateless_deployment_descriptor.client

Client

public class Client extends Object

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)

      InitialContext ctx = new InitialContext();
      Calculator calculator = (Calculator) ctx.lookup(CalculatorRemote.class.getName());

      System.out.println("1 + 1 = " + calculator.add(1, 1));
      System.out.println("1 - 1 = " + calculator.subtract(1, 1));