我有一个会话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()
任何人都能说出来,出了什么问题?