KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > example > session > local > CounterBean


1 package example.session.local;
2
3 import javax.ejb.*;
4
5 import com.caucho.ejb.*;
6
7 public class CounterBean extends AbstractSessionBean {
8   int count;
9
10   // no initialization needed
11
public void ejbCreate()
12   {
13   }
14
15   public int hit()
16   {
17     return ++count;
18   }
19 }
20
Popular Tags