short amount = rcv.getShort("amount");
String resp = "NAMINGERROR";
try {
Context ctx = new InitialContext();
DebitRemote bean = (DebitRemote) ctx.lookup("DebitBean/remote");
log.debug("resolved DebitBean");
resp = bean.debit(acct_no, amount);
} catch (NamingException e) {
log.error("Got a naming error: " + e.getMessage(), e);
}
log.trace("Returning: " + resp);
X_OCTET buffer = (X_OCTET) svcinfo.getConnection().tpalloc("X_OCTET",