1 22 package org.jboss.test.cluster.ejb; 23 24 import java.rmi.dgc.VMID ; 25 import javax.ejb.SessionBean ; 26 import javax.ejb.CreateException ; 27 import javax.ejb.SessionContext ; 28 29 import org.jboss.logging.Logger; 30 31 35 public class CalleeBean implements SessionBean 36 { 37 private static Logger log = Logger.getLogger(CalleeBean.class); 38 private static VMID vmid = new VMID (); 39 40 public void ejbCreate() throws CreateException 41 { 42 log.debug("ejbCreate() called"); 43 } 44 45 public void ejbActivate() 46 { 47 log.debug("ejbActivate() called"); 48 } 49 50 public void ejbPassivate() 51 { 52 log.debug("ejbPassivate() called"); 53 } 54 55 public void ejbRemove() 56 { 57 log.debug("ejbRemove() called"); 58 } 59 60 public void setSessionContext(SessionContext context) 61 { 62 } 63 64 public VMID call(String info) 65 { 66 log.info("call, info="+info+", vmid="+vmid); 67 return vmid; 68 } 69 } 70 | Popular Tags |