Hi all, I’m now to these forums. I’m trying to get the JDBC adapter to work in a transactional manner for specific use case. However, I’m having the following error:
[ART.117.4002] Adapter Runtime (Adapter Service): Unable to invoke adapter service Transactions:adpsvcGetTransBuffer.
[ART.117.4011] Adapter Runtime (Adapter Service): Unable to connect to resource JDBC_Connections.PMT:MyConn_Local_Transaction. The resource is already being used in a parent transaction.
I’ve used transactions with JDBC adapter before and they work very well for the same case:
art.startTransaction
sequence(success)
sequence(failure)
db_action_1
db_action_2
…
db_action_n
art.commitTransaction
sequence(done)
art.rollbackTransaction
In the case that is causing problems, I have the transactions in a loop (looping over a document). I don’t want all or nothing transactional operations for the entire document, only on a per document record. Example:
art.startTransaction
sequence(success)
sequence(failure)
db_action_get_docHeaderRecords(maps to document/records)
Loop over /document/records
art.startTransaction
sequence(success)
sequence(failure)
do_dbactionForThisRecord1
do_dbactionForThisRecord2
do_dbactionForThisRecord3
art.commitTransaction
sequence(done)
art.rollbackTransaction (only for this record)
art.commitTransaction
sequence(done)
art.rollbackTransaction
Can anyone help? Thanks in advance.
#webMethods#Integration-Server-and-ESB#Adapters-and-E-Standards