EJB2.0会话bean中的多个方法调用

时间:2013-07-01 11:24:44

标签: java oracle transactions ejb-2.x

我有一个会话bean,其中包含以下方法

/**
  *  This method is used to Update Voucher Expiry Date and Voucher Status for Voucher Service
  * @ejb.interface-method
  * @ejb.facade-method invalidate="true" 
  * @ejb.transaction type="Supports" 
  * 
  * @return ResulObject, Which contain Success Or Error Code as a Response Code
  * 
  */

 public ResultObject updateVoucherDetails(VoucherServiceData voucherServiceData){
    IPINSessionBeanLocalHome pinSessionBeanLocalHome=getPINSessionBeanLocalHome();
    IPINSessionBeanLocal pinSessionBeanLocal = pinSessionBeanLocalHome.create()
    pinSessionBeanLocal.changeVoucherStatus(voucherStatusChangeData,sessionInfo);
 }

 /**
  *  This method is used to Change Voucher Status
  * @ejb.interface-method
  * @ejb.facade-method invalidate="true" 
  * @ejb.transaction type="Supports" 
  * @return ResulObject, Which contain Success Or Error Code as a Response Code
  * 
  */

 public ResultObject changeVoucherStatus(VoucherStatusChangeData voucherStatusChangeData,ISessionInfo sessionInfo){

 }

当我直接在数据库中成功更新changeVoucherStatus()数据时。

但是当我调用updateVoucherDetails()时,changeVoucherStatus()方法的数据没有更新到数据库中,即使我在changeVoucherStatus()

内找到了日志

任何人都能说出来,出了什么问题?

0 个答案:

没有答案