Forte:Transaction Handling
Hi ,
Iam trying to run an independent transaction using the start task statement
transaction.beginIndependent();
sql insert into ORDER_TBL (orderId) values (:int_var) on session DBSessionSO;
if (int_var % 5 = 0) then
eventcase
postregister
start task m3(int_var) where completion = event,transaction = independent;
when m3_returnValuedo
task.part.logmgr.putline('returning m2_exceptionValue');
when m3_exceptionValuedotask.part.logmgr.putline('returning m2_exceptionValue');
end event;
endif;
if (int_var % 10 = 0) then
transaction.Abort();
else
transaction.commit();
endif;
In my start task statement if I specify that the transaction is 'independent'
then the prog hangs
but if I specify that the transaction is 'dependent'
it works fine with the expected output.
Please let me know as to where Iam going wrong.
Thanks in advance

