Hi All,
I am facing a issue regarding commit and rollback of transactions in a nested service. I have the following :
Flow A
Start Transaction -A
try/Catch
try Block
Step a.1
Step a.3
Invoke service B
Invoke service C
commit Transaction -A
catch
rollback Transaction - A
Flow B
Start Transaction - B
Try/catch Block
try Block
adapter Service b.1
commit Transaction - B (INSERT)
catch Block
rollback Transaction - B
Flow C
Start Transaction - C
Try/catch Block
try block
adapter service c.1 (UPDATE)
commit Transaction - C
catch Block
rollback Transaction - C
This is the structure of the services that need to be created. I have managed to put them all under one Parent transaction where i do not have individual transactions for each flow, and that works fine for both commit and rollback.
Problem : I am unable to successfully execute the above scenario where i would like to have individual transactions for each flow. In the case that i let the art manage the transactions i was getting the error “Error unable to close/commit transaction 1001 when transaction 999 is active” (something pretty much like this. Following which i placed explict “startTransaction” names giving them “a”, “b” and “c” in this case too i faced similar problem of “Error unable to close/commit transaction c when transaction a is active”, however the INSERT(FLOW 2) happenend successfully. Finally i tried giving all the 3 transactions the same name “a” where i got another error “Unable to start transaction ‘a’ its already open”(well guess that i am pretty memorizing all the error types
)
I am making use of a LOCAL_TRANSACTION connection for all of the above and they are all pointing the same database , Oracle 10g. The version of the JDBC adapter is 6.0 and the version of the IS is 6.5 SP2.
Appreciate all help
Thanks and regards
-jk
#webMethods#Adapters-and-E-Standards#Integration-Server-and-ESB