Transactions are not true transactions?

When I publish a beginTransaction document, the adapter holds all subsequent documents with the transaction id until it receives the appropriate endTransction document.

But that’s not the transaction that I need to commit or rollback. If any of the subsequent documents fail during an insert into the database, I want to rollback the previous inserts.

How is is possible that I can do this? Specifically with JDBC adapter connecting to DB2 OS/390.