1 22 package org.jboss.test.aop.simpleejb; 23 24 import java.rmi.RemoteException ; 25 import java.sql.Connection ; 26 import java.sql.ResultSet ; 27 import java.sql.SQLException ; 28 import java.sql.Statement ; 29 30 import javax.ejb.EJBException ; 31 import javax.ejb.SessionBean ; 32 import javax.ejb.SessionContext ; 33 import javax.naming.Context ; 34 import javax.naming.InitialContext ; 35 import javax.naming.NamingException ; 36 import javax.sql.DataSource ; 37 38 46 public class SimpleBean implements SessionBean 47 { 48 51 public String getTest() 52 { 53 System.out.println("**** in SimpleBean.getTest()"); 54 return "Test"; 55 } 56 57 public void ejbActivate() throws EJBException , RemoteException 58 { 59 } 60 61 public void ejbPassivate() throws EJBException , RemoteException 62 { 63 } 64 65 public void ejbRemove() throws EJBException , RemoteException 66 { 67 } 68 69 public void setSessionContext(SessionContext arg0) 70 throws EJBException , RemoteException 71 { 72 } 73 74 public void ejbCreate() 75 { 76 } 77 78 } 79 | Popular Tags |