1 25 26 28 package org.objectweb.jonas.jtests.beans.transacted; 29 30 31 import java.rmi.RemoteException ; 32 33 import javax.ejb.SessionContext ; 34 35 import org.objectweb.util.monolog.api.BasicLevel; 36 37 40 41 public class SimpleSF extends SimpleCommon { 42 43 protected SessionContext sessionContext; 44 public int i = 0; 45 46 public void setSessionContext(SessionContext sessionContext) { 47 initLogger(); 48 logger.log(BasicLevel.DEBUG, ""); 49 this.sessionContext = sessionContext; 50 } 51 52 public void ejbActivate() { 53 logger.log(BasicLevel.DEBUG, ""); 54 } 55 56 public void ejbPassivate() { 57 logger.log(BasicLevel.DEBUG, ""); 58 } 59 60 public void ejbRemove() { 61 logger.log(BasicLevel.DEBUG, ""); 62 } 63 64 public void ejbCreate() { 65 logger.log(BasicLevel.DEBUG, ""); 66 } 67 68 public void ejbCreate(int i) { 69 this.i = i; 70 } 71 72 75 public boolean supports_call_required() throws RemoteException { 76 logger.log(BasicLevel.DEBUG, ""); 77 Simple mysession = (Simple) sessionContext.getEJBObject(); 78 return mysession.opwith_required(); 79 } 80 81 } 82 | Popular Tags |