I have some questions about usage of built-in Transaction Management Services (startTransaction, commitTransaction, rollbackTransaction, etc):
The JDBC Adapter Guide (page 238) said:
I have a flow service that has many sequences (and it has child sequences too), so does that mean I can only put startTransaction outside of any SEQUENCE ?
For example, my flow service is like this:
... (do something here)
SEQUENCE (TRY & CATCH -> this is the top-most SEQUENCE)
SEQUENCE (TRY)
... (do another things here)
Invoke: [B]startTransaction[/b]
SEQUENCE (TRY & CATCH)
SEQUENCE (TRY)
Invoke: insertToDB_adapter_service
Invoke: [B]commitTransaction[/b]
SEQUENCE (CATCH)
Invoke: [B]rollbackTransaction[/b]
EXIT flow & signal FAILURE
... (do another things here)
SEQUENCE (CATCH)
... (do another things here)
Is it okay to put startTransaction inside the top-most SEQUENCE ?
My second question: is it true that after invoking rollbackTransaction, we must always call: EXIT flow & signal FAILURE ? (as depicted in above example)
Thanks in advance.
#Flow-and-Java-services#Integration-Server-and-ESB#webMethods