1 7 package org.jboss.test.jbossnet.servicename; 8 9 import javax.ejb.EJBException ; 10 import javax.ejb.SessionBean ; 11 import javax.ejb.SessionContext ; 12 import java.rmi.RemoteException ; 13 14 24 public class HelloBeanImpl implements SessionBean 25 { 26 27 34 public GreetingTO sayHello() 35 { 36 GreetingTO g = new GreetingTO(); 37 g.setGreeting("Hello !!!"); 38 return g; 39 } 40 41 public void ejbCreate() throws EJBException , RemoteException 42 { 43 } 44 45 public void ejbActivate() throws EJBException , RemoteException 46 { 47 } 48 49 public void ejbPassivate() throws EJBException , RemoteException 50 { 51 } 52 53 public void ejbRemove() throws EJBException , RemoteException 54 { 55 } 56 57 public void setSessionContext(SessionContext ctx) throws EJBException , RemoteException 58 { 59 } 60 61 } 62 | Popular Tags |