FileDocCategorySizeDatePackage
Client.javaAPI DocJBoss 4.2.11512Fri Jul 13 20:54:40 BST 2007org.jboss.tutorial.jndibinding.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("Calculator");

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