java - multiple method invocation in EJB2.0 session bean -
i have 1 session bean following method
/** * method used update voucher expiry date , voucher status voucher service * @ejb.interface-method * @ejb.facade-method invalidate="true" * @ejb.transaction type="supports" * * @return resulobject, contain success or error code response code * */ public resultobject updatevoucherdetails(voucherservicedata voucherservicedata){ ipinsessionbeanlocalhome pinsessionbeanlocalhome=getpinsessionbeanlocalhome(); ipinsessionbeanlocal pinsessionbeanlocal = pinsessionbeanlocalhome.create() pinsessionbeanlocal.changevoucherstatus(voucherstatuschangedata,sessioninfo); } /** * method used change voucher status * @ejb.interface-method * @ejb.facade-method invalidate="true" * @ejb.transaction type="supports" * @return resulobject, contain success or error code response code * */ public resultobject changevoucherstatus(voucherstatuschangedata voucherstatuschangedata,isessioninfo sessioninfo){ }
when call changevoucherstatus()
directly data updated in database.
but when have called updatevoucherdetails()
, data changevoucherstatus()
method did not update database , have found log printed inside changevoucherstatus()
can tell , going wrong ?
Comments
Post a Comment