FileDocCategorySizeDatePackage
Client.javaAPI DocJBoss 4.2.11578Fri Jul 13 20:55:22 BST 2007org.jboss.tutorial.stateless.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("CalculatorBean/remote");

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