#!/bin/bash ## Run the acquiring driver under a real global XA transaction. ## ./run-driver.sh -> one COMMIT run + one ROLLBACK run (demo) ## ./run-driver.sh [abort] -> single custom run . /app/conf/setapp.sh if [ "$#" -ge 1 ]; then exec /app/bin/acqdrv "$@" fi echo "===== COMMIT run (ACQUIRE -> RECONCILE -> SETTLE, tpcommit) =====" /app/bin/acqdrv M0001 1000000 2026-07-19 echo echo "===== ROLLBACK run (same chain, tpabort) =====" /app/bin/acqdrv M0002 500000 2026-07-19 abort