1 25 26 package org.objectweb.jonas.jtests.beans.local; 27 28 import javax.ejb.CreateException ; 29 import javax.ejb.SessionBean ; 30 import javax.ejb.SessionContext ; 31 32 import org.objectweb.jonas.common.Log; 33 import org.objectweb.util.monolog.api.BasicLevel; 34 import org.objectweb.util.monolog.api.Logger; 35 36 37 41 public class SimpleSessionSL implements SessionBean { 42 43 static protected Logger logger = null; 44 SessionContext ejbContext; 45 46 public String string; 47 public int number; 48 public boolean createdViaCreateXX; 49 public boolean createdViaCreateYY; 50 51 55 66 public void setSessionContext(SessionContext ctx) { 67 if (logger == null) 68 logger = Log.getLogger(Log.JONAS_TESTS_PREFIX); 69 logger.log(BasicLevel.DEBUG, ""); 70 ejbContext = ctx; 71 } 72 73 82 public void ejbRemove() { 83 logger.log(BasicLevel.DEBUG, ""); 84 } 85 86 91 public void ejbCreate() throws CreateException { 92 logger.log(BasicLevel.DEBUG, ""); 93 } 94 95 99 public void ejbPassivate() { 100 logger.log(BasicLevel.DEBUG, ""); 101 } 102 103 108 public void ejbActivate() { 109 logger.log(BasicLevel.DEBUG, ""); 110 } 111 112 116 119 public int getTen() { 120 logger.log(BasicLevel.DEBUG, ""); 121 return 10; 122 } 123 124 127 public void method2(java.lang.String s) { 128 logger.log(BasicLevel.DEBUG, ""); 129 } 130 131 135 public int getNumber() { 136 logger.log(BasicLevel.DEBUG, ""); 137 return 0; 138 } 139 140 144 public String getString() { 145 logger.log(BasicLevel.DEBUG, ""); 146 return null; 147 } 148 149 153 public boolean isCreatedViaCreateXX() { 154 logger.log(BasicLevel.DEBUG, ""); 155 return false; 156 } 157 158 159 } 160 | Popular Tags |