1 25 26 package org.objectweb.jonas.jtests.beans.flocal; 27 28 import java.sql.Connection ; 29 import java.sql.SQLException ; 30 import java.sql.Statement ; 31 import javax.ejb.CreateException ; 32 import javax.ejb.EJBException ; 33 import javax.ejb.RemoveException ; 34 import javax.ejb.EJBObject ; 35 import javax.ejb.SessionBean ; 36 import javax.ejb.SessionContext ; 37 import javax.naming.Context ; 38 import javax.naming.InitialContext ; 39 import javax.naming.NamingException ; 40 41 42 43 44 48 public class TargetSL implements SessionBean { 49 50 SessionContext ejbContext; 52 53 public String string; 54 public int number; 55 public boolean createdViaCreateXX; 56 public boolean createdViaCreateYY; 57 58 62 73 public void setSessionContext(SessionContext ctx) { 74 ejbContext = ctx; 78 } 79 80 89 public void ejbRemove() { 90 } 92 93 98 public void ejbCreate() throws CreateException { 99 } 101 102 106 public void ejbPassivate() { 107 } 109 110 115 public void ejbActivate() { 116 } 118 119 123 126 public int getTwenty() { 127 return 20; 129 } 130 131 134 public void lmethod2(java.lang.String s) { 135 } 137 138 142 145 public int getTen() { 146 return 10; 148 } 149 150 153 public void method2(java.lang.String s) { 154 } 156 157 161 public int getNumber() { 162 return 0; 164 } 165 166 170 public String getString() { 171 return null; 173 } 174 175 179 public boolean isCreatedViaCreateXX() { 180 return false; 182 } 183 184 185 } 186 | Popular Tags |