首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

EJBFactory 设计步骤

2012-12-21 
EJBFactory 设计方法。一、EJBFactory 设计类如下:?二、获取EJB实例的方法:try{TransCurrentDepositHome home

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的方法。?

热点排行