KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > test > ejb > StatefulBean


1 package test.ejb;
2
3 /**
4  * @ejb.bean
5  * name="Stateful"
6  * type="Stateful"
7  * description="bébé"
8  *
9  * @jonas.bean ejb-name="Stateful"
10  * jndi-name="StatefulHome"
11  */

12 public abstract class StatefulBean implements javax.ejb.SessionBean JavaDoc {
13     private String JavaDoc x;
14
15     /**
16      * @ejb.interface-method
17      */

18     public String JavaDoc foobar() {
19         return "Foobar";
20     }
21
22     /**
23      * @ejb.create-method
24      */

25     public void ejbCreateWithParam(String JavaDoc x) {
26         this.x = x;
27     }
28
29     /**
30      * @ejb.create-method
31      */

32     public void ejbCreate(String JavaDoc x) {
33         this.x = x;
34     }
35
36     /**
37      * @ejb.interface-method
38      * @ejb.transaction type="RequiresNew"
39      *
40      */

41     public void txrequiresnew() {
42         ; // Do nothing
43
}
44 }
45
Popular Tags