This sample demonstrates nested transaction behavior. The application starts a transaction, then, before committing it, calls a function that starts and commits a nested transaction, then the outer transaction is committed.
See instructions here on how to build this and other samples on your development platform. Once built, the sample can be run from the
\target\bin
directory:07_transactions_nestedBut it is more instructive to run it in your development environment debugger, stepping through the code.