FileDocCategorySizeDatePackage
CalculatorBean.javaAPI DocJBoss 4.2.11624Fri Jul 13 20:55:22 BST 2007org.jboss.tutorial.stateless.bean

CalculatorBean

public class CalculatorBean extends Object implements CalculatorRemote, CalculatorLocal

Fields Summary
Constructors Summary
Methods Summary
public intadd(int x, int y)

      try
      {
         DataSource ds = (DataSource)new InitialContext().lookup("java:/DefaultDS");
      }
      catch (NamingException e)
      {
         throw new RuntimeException(e);
      }
      return x + y;
   
public intsubtract(int x, int y)

      return x - y;