KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > testGenerateJavaEE14 > TestStatefulLRBean


1 /*
2  * TestStatefulLRBean.java
3  *
4  * Created on {date}, {time}
5  *
6  * To change this template, choose Tools | Template Manager
7  * and open the template in the editor.
8  */

9
10 package testGenerateJavaEE14;
11
12 import javax.ejb.SessionBean JavaDoc;
13 import javax.ejb.SessionContext JavaDoc;
14
15 /**
16  *
17  * @author {user}
18  */

19 public class TestStatefulLRBean implements SessionBean JavaDoc {
20     
21     private SessionContext JavaDoc context;
22     
23     // <editor-fold defaultstate="collapsed" desc="EJB infrastructure methods. Click the + sign on the left to edit the code.">;
24

25     // TODO Add code to acquire and use other enterprise resources (DataSource, JMS, enterprise bean, Web services)
26
// TODO Add business methods or web service operations
27

28     /**
29      * @see javax.ejb.SessionBean#setSessionContext(javax.ejb.SessionContext)
30      */

31     public void setSessionContext(SessionContext JavaDoc aContext) {
32         context = aContext;
33     }
34     
35     /**
36      * @see javax.ejb.SessionBean#ejbActivate()
37      */

38     public void ejbActivate() {
39         
40     }
41     
42     /**
43      * @see javax.ejb.SessionBean#ejbPassivate()
44      */

45     public void ejbPassivate() {
46         
47     }
48     
49     /**
50      * @see javax.ejb.SessionBean#ejbRemove()
51      */

52     public void ejbRemove() {
53         
54     }
55     
56     // </editor-fold>;
57

58     /**
59      * See section 7.10.3 of the EJB 2.0 specification
60      * See section 7.11.3 of the EJB 2.1 specification
61      */

62     public void ejbCreate() {
63         // TODO implement ejbCreate if necessary, acquire resources
64
// This method has access to the JNDI context so resource aquisition
65
// spanning all methods can be performed here such as home interfaces
66
// and data sources.
67
}
68     
69     // Add business logic below. (Right-click in editor and choose
70
// "EJB Methods > Add Business Method" or "Web Service > Add Operation")
71

72 }
73
Popular Tags