Package org.jboss.narayana.blacktie.jatmibroker.jab

Examples of org.jboss.narayana.blacktie.jatmibroker.jab.JABTransaction


    double[] balances = new double[2];
    balances[0] = 1.1;
    balances[1] = 2.2;
    dos.setDoubleArray("balances", balances);

    JABTransaction transaction = new JABTransaction(jabSession, 5000);
    jabService.call(transaction);
    transaction.commit();

    JABMessage response = jabService.getResponse();
    byte[] expected = new byte[60];
    System.arraycopy("tpcall_x_c_type".getBytes(), 0, expected, 0, 15);
    byte[] received = response.getByteArray("X_OCTET");
View Full Code Here


        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) {
          try {
            tx.commit();
          } catch (JABException e) {
            args = "Service create a transaction but commit failed: "
                + e;
            log.error(args, e);
          }
View Full Code Here

TOP

Related Classes of org.jboss.narayana.blacktie.jatmibroker.jab.JABTransaction

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.