EJBFactory 设计方法。
一、EJBFactory 设计类如下:
?二、获取EJB实例的方法:
try{TransCurrentDepositHome home =(TransCurrentDepositHome) EJBHomeFactory.getFactory().lookUpHome(TransCurrentDepositHome.class);transCurrentDepositFacade = (TransCurrentDeposit) home.create();}catch (RemoteException e){throw e;}catch (IException e){e.printStackTrace();throw new RemoteException();}catch (CreateException e){e.printStackTrace();throw new RemoteException();}?三、仅供参考设计EJBFactory的方法。?