KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > tutorial > stateless_deployment_descriptor > bean > CalculatorBean


1 /*
2  * JBoss, the OpenSource J2EE webOS
3  *
4  * Distributable under LGPL license.
5  * See terms of license at gnu.org.
6  */

7 package org.jboss.tutorial.stateless_deployment_descriptor.bean;
8
9 public class CalculatorBean implements CalculatorRemote, CalculatorLocal
10 {
11    public int add(int x, int y)
12    {
13       return x + y;
14    }
15
16    public int subtract(int x, int y)
17    {
18       return x - y;
19    }
20 }
21
Popular Tags