01: /*
02: * JOnAS: Java(TM) Open Application Server
03: * Copyright (C) 1999 Bull S.A.
04: * Contact: jonas-team@objectweb.org
05: *
06: * This library is free software; you can redistribute it and/or
07: * modify it under the terms of the GNU Lesser General Public
08: * License as published by the Free Software Foundation; either
09: * 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 4371 2004-03-15 16:04:22Z durieuxp $
23: * --------------------------------------------------------------------------
24: */
25:
26: package org.objectweb.jonas.jtests.beans.beanexc;
27:
28: import javax.ejb.SessionBean;
29: import javax.ejb.SessionContext;
30: import javax.ejb.EJBContext;
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 {
39: protected SessionContext 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 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 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: }
|