1

我有一个使用以下方法的会话 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()

任何人都可以告诉,出了什么问题?

4

0 回答 0