CalculatorBeanpublic class CalculatorBean extends Object implements CalculatorRemote, CalculatorLocal
Methods Summary |
---|
public int | add(int x, int y)
try
{
DataSource ds = (DataSource)new InitialContext().lookup("java:/DefaultDS");
}
catch (NamingException e)
{
throw new RuntimeException(e);
}
return x + y;
| public int | subtract(int x, int y)
return x - y;
|
|