1 22 package org.jboss.tutorial.reference21_30.bean; 23 24 import javax.ejb.SessionContext ; 25 import javax.naming.InitialContext ; 26 27 import org.jboss.logging.Logger; 28 29 33 public class Stateless2Bean 34 implements javax.ejb.SessionBean 35 { 36 private static final Logger log = Logger.getLogger(Stateless2Bean.class); 37 38 public void testAccess() 39 { 40 try 41 { 42 InitialContext jndiContext = new InitialContext (); 43 Stateless3 session = (Stateless3)jndiContext.lookup("java:comp/env/ejb/Stateless3"); 44 session.testAccess(); 45 } 46 catch (Exception e) 47 { 48 e.printStackTrace(); 49 } 50 } 51 52 public void ejbCreate() 53 { 54 55 } 56 57 public void ejbActivate() 58 { 59 60 } 61 62 public void ejbPassivate() 63 { 64 65 } 66 67 public void ejbRemove() 68 { 69 70 } 71 72 public void setSessionContext(SessionContext context) 73 { 74 75 } 76 } 77 | Popular Tags |