byte[] bid = new byte[64];
for (int i=0; i < 64; i++) {
gid[i] = (byte) i;
bid[i] = (byte) (64 - i);
}
Xid xid = new ClientXid(0x1234, gid, bid);
// get the stuff required to execute the global transaction
xaConn = xaDataSource.getXAConnection();
xaRes = xaConn.getXAResource();
conn = xaConn.getConnection();