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 46 public class TargetSF extends TargetSL { 47 48 public String string; 49 public int number; 50 public boolean createdViaCreateXX; 51 public boolean createdViaCreateYY; 52 53 58 public void ejbCreate() throws CreateException { 59 string = ""; 61 number = 0; 62 createdViaCreateXX = false; 63 createdViaCreateYY = false; 64 } 65 66 67 72 public void ejbCreate(String s, int n) throws CreateException { 73 string = s; 75 number = n; 76 createdViaCreateXX = false; 77 createdViaCreateYY = false; 78 } 79 80 81 86 public void ejbCreateXX(String s, int n) throws CreateException { 87 string = s; 89 number = n; 90 createdViaCreateXX = true; 91 createdViaCreateYY = false; 92 } 93 94 99 public void ejbCreateYY(String s, int n) throws CreateException { 100 string = s; 102 number = n; 103 createdViaCreateXX = false; 104 createdViaCreateYY = true; 105 } 106 107 108 112 115 public int getNumber() { 116 return number; 118 } 119 120 123 public String getString() { 124 return string; 126 } 127 128 131 public boolean isCreatedViaCreateXX() { 132 return createdViaCreateXX; 134 } 135 136 140 143 public boolean isCreatedViaCreateYY() { 144 return createdViaCreateYY; 146 } 147 } 148 | Popular Tags |