X_OCTET buffer = (X_OCTET) connection.tpalloc("X_OCTET", null,
echo.length);
buffer.setByteArray(echo);
log.info("Invoking TxCreateService...");
Response response = connection.tpcall("TxCreateService",
buffer, 0);
X_OCTET rcvd = (X_OCTET) response.getBuffer();
String responseData = new String(rcvd.getByteArray());
log.info("TxCreateService response: " + responseData);
// check that the remote service created a transaction
JABTransaction tx = JABTransaction.current();