Package org.jboss.narayana.blacktie.examples.integration1.xatmi_adapter

Examples of org.jboss.narayana.blacktie.examples.integration1.xatmi_adapter.DebitAdapterService


    short amount = rcv.getShort("amount");

    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);
View Full Code Here


    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",
View Full Code Here

TOP

Related Classes of org.jboss.narayana.blacktie.examples.integration1.xatmi_adapter.DebitAdapterService

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.