Examples of TransactionId


Examples of org.jboss.ejb.client.TransactionID

        // read the transaction id length
        final int transactionIDBytesLength = PackedInteger.readPackedInteger(input);
        // read the transaction id bytes
        final byte[] transactionIDBytes = new byte[transactionIDBytesLength];
        input.read(transactionIDBytes);
        final TransactionID transactionID = TransactionID.createTransactionID(transactionIDBytes);
        // if it's a commit request, the read the additional "bit" which indicates whether it's a one-phase
        // commit request
        boolean onePhaseCommit = false;
        if (this.txRequestType == TransactionRequestType.COMMIT) {
            onePhaseCommit = input.readBoolean();
View Full Code Here

Examples of org.jboss.ejb.client.TransactionID

        if (remotingAttachments != null) {
            // get the transaction attachment
            final byte[] transactionIDBytes = remotingAttachments.getPayloadAttachment(0x0001);
            // A (remote) tx is associated with the invocation, so propogate it appropriately
            if (transactionIDBytes != null) {
                final TransactionID transactionID = TransactionID.createTransactionID(transactionIDBytes);
                // if it's UserTransaction then create or resume the UserTransaction corresponding to the ID
                if (transactionID instanceof UserTransactionID) {
                    this.createOrResumeUserTransaction((UserTransactionID) transactionID);
                } else if (transactionID instanceof XidTransactionID) {
                    this.createOrResumeXidTransaction((XidTransactionID) transactionID);
View Full Code Here

Examples of org.jscep.transaction.TransactionId

    @Parameters
    public static Collection<Object[]> getParameters() throws Exception {
  List<Object[]> params = new ArrayList<Object[]>();

  KeyPair pair = KeyPairGenerator.getInstance("RSA").generateKeyPair();
  TransactionId transId = TransactionId.createTransactionId();
  Nonce recipientNonce = Nonce.nextNonce();
  Nonce senderNonce = recipientNonce;
  X500Name issuer = new X500Name("CN=CA");
  X500Name subject = new X500Name("CN=Client");
  IssuerAndSubject ias = new IssuerAndSubject(issuer, subject);
View Full Code Here

Examples of org.ozoneDB.core.TransactionID

            try {
                tx.connection = acquirePooledConnection();
                joinTX(tx);

                // exceptions are catched and re-thrown be sendCommand()
                TransactionID taID = (TransactionID) sendCommand(new DbTransaction(DbTransaction.MODE_BEGIN), true, tx.connection);
            } catch (IOException e) {
                throw e;
            } catch (Exception e) {
                throw new TransactionExc(e.toString(), TransactionExc.UNEXPECTED);
            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.