Highlighted

Transaction JSSP

Avatar

Avatar

quentinm9832912

Avatar

quentinm9832912

quentinm9832912

27-03-2019

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,

Replies

Highlighted

Avatar

Avatar

bobbyjss

MVP

Avatar

bobbyjss

MVP

bobbyjss
MVP

27-03-2019

Hi Quentin,

You have posted this in the wrong forum. This is specifically for Adobe Campaign Standard.

Highlighted

Avatar

Avatar

quentinm9832912

Avatar

quentinm9832912

quentinm9832912

27-03-2019

Hi,

my bad, i am sorry.

if a moderator see this message, you can delete this post.

Thanks you,

Quentin,