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 SimpleSessionSL implements SessionBean { 49 50 51 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 75 ejbContext = ctx; 76 } 77 78 87 public void ejbRemove() { 88 89 } 90 91 96 public void ejbCreate() throws CreateException { 97 98 } 99 100 104 public void ejbPassivate() { 105 106 } 107 108 113 public void ejbActivate() { 114 115 } 116 117 121 124 public int getTen() { 125 126 return 10; 127 } 128 129 132 public void method2(java.lang.String s) { 133 134 } 135 136 140 public int getNumber() { 141 142 return 0; 143 } 144 145 149 public String getString() { 150 151 return null; 152 } 153 154 158 public boolean isCreatedViaCreateXX() { 159 160 return false; 161 } 162 163 164 } 165 | Popular Tags |