熱點推薦:
您现在的位置: 電腦知識網 >> 編程 >> Java編程 >> Java開源技術 >> 正文

Jboss4.x下第一個EJB2.x程序[2]

2013-11-23 20:55:10  來源: Java開源技術 
java源文件 Hellojava package powerwind;   import javarmiRemoteException; import javaxejbEJBObject;   publicinterface Hello extends EJBObject {     public String sayHello() throws RemoteException; }   HelloHomejava package powerwind;   import javarmiRemoteException; import javaxejbCreateException; import javaxejbEJBHome;   publicinterface HelloHome extends EJBHome {     public Hello create() throws RemoteException CreateException; }   HelloBeanjava package 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() From:http://tw.wingwit.com/Article/program/Java/ky/201311/29299.html
  • 上一篇文章:

  • 下一篇文章: 没有了
  • 推薦文章
    Copyright © 2005-2013 電腦知識網 Computer Knowledge   All rights reserved.