String resp = "NAMINGERROR";
try {
Context ctx = new InitialContext();
CreditRemote bean = (CreditRemote) ctx.lookup("CreditBean/remote");
log.debug("resolved CreditBean");
resp = bean.credit(acct_no, amount);
} catch (NamingException e) {
log.error("Got a naming error: " + e.getMessage(), e);
}
log.trace("Returning: " + resp);