一个简单的EJB实例.用DB2连接.JSP页面.很好用.供大家学习
源代码在线查看: ejsstatelesssalesfacadehomebean_08ce4a61.java
package com.xyz.ejb; import com.ibm.ejs.container.*; /** * EJSStatelessSalesFacadeHomeBean_08ce4a61 */ public class EJSStatelessSalesFacadeHomeBean_08ce4a61 extends EJSHome { /** * EJSStatelessSalesFacadeHomeBean_08ce4a61 */ public EJSStatelessSalesFacadeHomeBean_08ce4a61() throws java.rmi.RemoteException { super(); } /** * create */ public com.xyz.ejb.SalesFacade create() throws javax.ejb.CreateException, java.rmi.RemoteException { BeanO beanO = null; com.xyz.ejb.SalesFacade result = null; boolean createFailed = false; try { result = (com.xyz.ejb.SalesFacade) super.createWrapper(new BeanId(this, null)); } catch (javax.ejb.CreateException ex) { createFailed = true; throw ex; } catch (java.rmi.RemoteException ex) { createFailed = true; throw ex; } catch (Throwable ex) { createFailed = true; throw new CreateFailureException(ex); } finally { if (createFailed) { super.createFailure(beanO); } } return result; } }