- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
Hi everyone,
I am trying to perform a transaction in JSSP Code (ac 6.1) but my rollback isn't working so as my commit.
What am i doing wrong ?
Does someone already used https://docs.campaign.adobe.com/doc/AC/en/jsapi/m-DBEngine-rollback.html ?
var vCnx = application.getConnection();
try{
vCnx.begin();
callMyFunction1();// xtk.Write inside
callMyFunction2();// xtk.Write inside but throw exception
vCnx.commit();
}catch(e){
vCnx.rollback();
}
vCnx.dispose();
Thanks you,
Quentin,
Solved! Go to Solution.