1 22 package org.jboss.test.pooled.bean; 23 24 import java.rmi.RemoteException ; 25 import java.security.Principal ; 26 import javax.ejb.CreateException ; 27 import javax.ejb.SessionBean ; 28 import javax.ejb.SessionContext ; 29 import org.jboss.logging.Logger; 30 31 35 public class StatelessSessionBean implements SessionBean 36 { 37 static Logger log = Logger.getLogger(StatelessSessionBean.class); 38 39 private SessionContext sessionContext; 40 41 public void ejbCreate() throws RemoteException , CreateException 42 { 43 } 44 45 public void ejbActivate() throws RemoteException 46 { 47 } 48 49 public void ejbPassivate() throws RemoteException 50 { 51 } 52 53 public void ejbRemove() throws RemoteException 54 { 55 } 56 57 public void setSessionContext(SessionContext context) throws RemoteException 58 { 59 sessionContext = context; 60 } 61 62 public void noop() 63 { 64 65 } 66 67 public Principal echoCaller(String info) throws RemoteException 68 { 69 Principal caller = sessionContext.getCallerPrincipal(); 70 return caller; 71 } 72 73 } 74 | Popular Tags |