KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > jfox > test > ejb3 > injection > CalculatorBean


1 /*
2  * JFox - The most lightweight Java EE Application Server!
3  * more details please visit http://www.huihoo.org/jfox or http://www.jfox.org.cn.
4  *
5  * JFox is licenced and re-distributable under GNU LGPL.
6  */

7 package jfox.test.ejb3.injection;
8
9 import javax.ejb.Stateless JavaDoc;
10
11 @Stateless JavaDoc(name="injection.CalculatorBean")
12 public class CalculatorBean implements Calculator {
13     public int add(int x, int y) {
14         return x + y;
15     }
16
17     public int subtract(int x, int y) {
18         return x - y;
19     }
20 }
21
Popular Tags