1 22 package org.jboss.test.txpropiiop.ejb.b; 23 24 import javax.ejb.CreateException ; 25 import javax.ejb.EJBException ; 26 import javax.ejb.SessionBean ; 27 import javax.ejb.SessionContext ; 28 import javax.naming.InitialContext ; 29 30 import org.jboss.logging.Logger; 31 import org.jboss.test.util.Debug; 32 33 39 public class SessionBEJB implements SessionBean 40 { 41 private static final Logger log = Logger.getLogger(SessionBEJB.class); 42 43 public String sayHello(String value) 44 { 45 if (value.equals("Hello") == false) 46 throw new EJBException ("Did not get the expected 'Hello'"); 47 return value; 48 } 49 50 public String testNotSupported(String value) 51 { 52 return sayHello(value); 53 } 54 55 public String testRequired(String value) 56 { 57 return sayHello(value); 58 } 59 60 public String testSupports(String value) 61 { 62 return sayHello(value); 63 } 64 65 public String testRequiresNew(String value) 66 { 67 return sayHello(value); 68 } 69 70 public String testMandatory(String value) 71 { 72 return sayHello(value); 73 } 74 75 public String testNever(String value) 76 { 77 return sayHello(value); 78 } 79 80 public void ejbCreate() throws CreateException 81 { 82 } 83 84 public void ejbActivate() 85 { 86 } 87 88 public void ejbPassivate() 89 { 90 } 91 92 public void ejbRemove() 93 { 94 } 95 96 public void setSessionContext(SessionContext ctx) 97 { 98 } 99 } 100 | Popular Tags |