java源文件Hellojavapackage powerwind;import javarmiRemoteException;import javaxejbEJBObject;publicinterface Hello extends EJBObject { public String sayHello() throws RemoteException;}HelloHomejavapackage powerwind;import javarmiRemoteException;import javaxejbCreateException;import javaxejbEJBHome;publicinterface HelloHome extends EJBHome { public Hello create() throws RemoteException CreateException;}HelloBeanjavapackage powerwind;import javarmiRemoteException;import javaxejbEJBException;import javaxejbSessionBean;import javaxejbSessionContext;publicclass HelloBean implements SessionBean { private SessionContext context; publicvoid ejbCreate() throws EJBException RemoteException { } publicvoid ejbActivate() throws EJBException RemoteException { } publicvoid ejbPassivate() throws EJBException RemoteException { } publicvoid ejbRemove()
|