KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > jonas > jtests > beans > beanexc > AccountSL


1 /*
2  * JOnAS: Java(TM) Open Application Server
3  * Copyright (C) 1999 Bull S.A.
4  * Contact: jonas-team@objectweb.org
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
19  * USA
20  *
21  * --------------------------------------------------------------------------
22  * $Id: AccountSL.java,v 1.4 2004/03/15 16:02:58 durieuxp Exp $
23  * --------------------------------------------------------------------------
24  */

25
26 package org.objectweb.jonas.jtests.beans.beanexc;
27
28 import javax.ejb.SessionBean JavaDoc;
29 import javax.ejb.SessionContext JavaDoc;
30 import javax.ejb.EJBContext JavaDoc;
31 import org.objectweb.jonas.common.Log;
32 import org.objectweb.util.monolog.api.BasicLevel;
33
34 /**
35  * Stateless Session Bean
36  * @author Philippe Coq
37  */

38 public class AccountSL extends AccountCommon implements SessionBean JavaDoc {
39     protected SessionContext JavaDoc sessionContext = null;
40
41     public void ejbActivate() {
42         logger.log(BasicLevel.DEBUG, "");
43     }
44
45     public void ejbPassivate() {
46         logger.log(BasicLevel.DEBUG, "");
47     }
48
49     public void ejbRemove() {
50         logger.log(BasicLevel.DEBUG, "");
51     }
52
53     public void setSessionContext(SessionContext JavaDoc t) {
54         if (logger == null) {
55             logger = Log.getLogger(Log.JONAS_TESTS_PREFIX);
56         }
57         logger.log(BasicLevel.DEBUG, "");
58         sessionContext = t;
59     }
60
61     public void ejbCreate() {
62         logger.log(BasicLevel.DEBUG, "");
63     }
64
65     public void setBalance(long val) {
66         logger.log(BasicLevel.DEBUG, "");
67     }
68
69     public EJBContext JavaDoc getContext() {
70         logger.log(BasicLevel.DEBUG, "");
71         return sessionContext;
72     }
73
74     public void doFailedEjbStore_1() {
75         logger.log(BasicLevel.DEBUG, "");
76     }
77
78     public void doFailedEjbStore_2() {
79         logger.log(BasicLevel.DEBUG, "");
80     }
81
82     public void doFailedEjbStore_3() {
83         logger.log(BasicLevel.DEBUG, "");
84     }
85 }
86
Popular Tags