#!/bin/bash # Source this to get the full Enduro/X + ECPG/XA runtime environment. # Used by entrypoint.sh (to boot) and by the driver run (to tpcall). export NDRX_APPHOME=/app export NDRX_CCONFIG=/app/conf/app.ini export PATH=/app/bin:/usr/local/bin:$PATH export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH # --- ECPG XA resource manager (PostgreSQL), coordinated by tmsrv --------------- # The XA switch (libndrxxaecpg.so) opens the DB connection at tpopen(); there is # NO explicit EXEC SQL CONNECT anywhere. Host "db" is the compose service name. export NDRX_XA_RES_ID=1 export NDRX_XA_DRIVERLIB=libndrxxaecpg.so export NDRX_XA_RMLIB=- export NDRX_XA_LAZY_INIT=1 export NDRX_XA_OPEN_STR='{ "url":"tcp:postgresql://db/acq", "user":"acq", "password":"acq"}' export NDRX_XA_CLOSE_STR="$NDRX_XA_OPEN_STR"