My question is how to effective remove pending transaction from in-transit if it fails from QueryHost.
<key count='1'>-cba-on-us-channel.ready</key>
<key count='1'>-cba-remote-on-us-channel.ready</key>
<key count='1'>$TAILLOCK.1215387873</key>
<key count='1'>-cba-inbranch-pos-channel.ready</key>
key-count: 4
gcinfo: 0,0
-remote-on-us-server: org.jpos.q2.iso.QServer
tspace:org.jpos.transaction.TransactionManager@487158e1: org.jpos.space.TSpace
<key count='1'>txnmgr.$CONTEXT.403</key>
<key count='1'>txnmgr.$CONTEXT.407</key>
<key count='1'>txnmgr.$STATE.409</key>
<key count='1'>txnmgr.$STATE.408</key>
<key count='1'>txnmgr.$STATE.407</key>
<key count='1'>$TAIL</key>
<key count='1'>txnmgr.$STATE.406</key>
<key count='1'>txnmgr.$STATE.405</key>
<key count='1'>txnmgr.$STATE.404</key>
<key count='1'>txnmgr.$STATE.403</key>
<key count='1'>$HEAD</key>
<key count='1'>txnmgr.$CONTEXT.413</key>
<key count='1'>txnmgr.$CONTEXT.414</key>
<key count='1'>txnmgr.$STATE.419</key>
<key count='1'>txnmgr.$STATE.418</key>
<key count='1'>txnmgr.$STATE.417</key>
<key count='1'>txnmgr.$STATE.416</key>
<key count='1'>txnmgr.$STATE.415</key>
<key count='1'>txnmgr.$STATE.414</key>
<key count='1'>txnmgr.$STATE.413</key>
<key count='1'>txnmgr.$STATE.412</key>
<key count='1'>txnmgr.$STATE.411</key>
<key count='1'>txnmgr.$STATE.410</key>
key-count: 23
channel.-cba-remote-on-us-channel: org.jpos.iso.channel.PostChannel
server.-fep-on-us-server: org.jpos.iso.ISOServer
connected=1, rx=1, tx=1, last=1506723934736, idle=40943ms
10.119.32.84:58993: rx=1, tx=1, last=1506723934736
txnmgr: org.jpos.transaction.TransactionManager
in-transit=17, head=420, tail=403, paused=0, outstanding=0, active-sessions=7/128, tps=0, peak=4, avg=0.04
ng..trx.mngr.Card-prepare max=439, min=0, mean=1.6787 stddev=21.6390 0.5%=0 99.5%=11, 99.9%=439
org.jpos.transaction.participant.QueryHost-prepare max=1, min=0, mean=0.2000 stddev=0.4000 0.5%=0 99.5%=1, 99.9%=1
org.jpos.transaction.participant.QueryHost-prepare-for-abort max=1, min=0, mean=0.0052 stddev=0.0720 0.5%=0 99.5%=0, 99.9%=1
org.jpos.transaction.participant.QueryHost-resume max=4511, min=34, mean=1012.9333 stddev=984.9684 0.5%=34 99.5%=4511, 99.9%=4511
org.jpos.transaction.participant.QueryHost-snapshot max=1, min=0, mean=0.0052 stddev=0.0719 0.5%=0 99.5%=0, 99.9%=1
org.jpos.transaction.participant.SendResponse-abort max=4, min=0, mean=0.2623 stddev=0.4740 0.5%=0 99.5%=1, 99.9%=4
org.jpos.transaction.participant.SendResponse-commit max=1, min=0, mean=0.7667 stddev=0.4230 0.5%=0 99.5%=1, 99.9%=1
org.jpos.transaction.participant.SendResponse-prepare max=1, min=0, mean=0.1000 stddev=0.3000 0.5%=0 99.5%=1, 99.9%=1
org.jpos.transaction.participant.SendResponse-prepare-for-abort max=1, min=0, mean=0.0286 stddev=0.1666 0.5%=0 99.5%=1, 99.9%=1
-cba-on-us-channel: org.jpos.q2.iso.ChannelAdaptor
tx=384, rx=384, connects=1, last=1506723970864, idle=4816ms
mux.-cba-on-us-mux: org.jpos.q2.iso.QMUX
tx=384, rx=382, tx_expired=0, tx_pending=0, rx_expired=2, rx_pending=0, rx_unhandled=0, rx_forwarded=0, connected=true, last=1506723970864, idle=4816ms
all max=10047, min=14, mean=175.2526 stddev=871.0654 0.5%=14 99.5%=6463, 99.9%=10047
ok max=6463, min=14, mean=123.7304 stddev=503.0463 0.5%=14 99.5%=3807, 99.9%=6463
-inbranch-pos-server: org.jpos.q2.iso.QServer
--on-us-server: org.jpos.q2.iso.QServer
logger.Q2: org.jpos.util.Logger
logger.: org.jpos.util.Logger
logger.Q2.buffered: org.jpos.util.BufferedLogListener
-cba-remote-on-us-channel: org.jpos.q2.iso.ChannelAdaptor
tx=362, rx=362, connects=1, last=1506723970883, idle=4798ms
channel.-cba-on-us-channel: org.jpos.iso.channel.PostChannel
in-transit=230, head=633, tail=403, paused=0, outstanding=0, active-sessions=6/128, tps=0, peak=4, avg=0.02