1 22 package org.jboss.test.jmx.eardeployment.a.ejb; 23 24 25 26 import java.rmi.RemoteException ; 27 import javax.ejb.SessionBean ; 28 import javax.ejb.SessionContext ; 29 import javax.naming.InitialContext ; 30 import org.jboss.logging.Logger; 31 import org.jboss.test.jmx.eardeployment.b.interfaces.SessionB; 32 import org.jboss.test.jmx.eardeployment.b.interfaces.SessionBHome; 33 import org.jboss.test.jmx.eardeployment.util.X; 34 35 51 public class SessionABean implements SessionBean 52 { 53 private static String version = X.VERSION; 54 60 public boolean callB() 61 { 62 try 63 { 64 65 SessionBHome bhome = (SessionBHome)new InitialContext ().lookup("eardeployment/SessionB"); 66 SessionB b = bhome.create(); 67 b.doNothing(); 68 return true; 69 } 70 catch (Exception e) 71 { 72 Logger.getLogger(getClass()).error("error in callB", e); 73 return false; 74 } 76 } 77 78 83 public void doNothing() 84 { 85 } 86 87 92 public void ejbCreate() 93 { 94 } 95 96 public void ejbActivate() 97 { 98 } 99 100 public void ejbPassivate() 101 { 102 } 103 104 public void ejbRemove() 105 { 106 } 107 108 public void setSessionContext(SessionContext ctx) 109 { 110 } 111 } 112 | Popular Tags |