return args;
}
} else if (args.contains("tx=create")) {
try {
byte[] echo = args.getBytes();
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();
if (tx != null) {