Examples of XidImpl


Examples of org.hornetq.core.transaction.impl.XidImpl

         XASession sess2 = conn2.createXASession();

         XAResource res = sess2.getXAResource();

         Xid xid1 = new XidImpl("bq1".getBytes(), 42, "eemeli".getBytes());

         res.start(xid1, XAResource.TMNOFLAGS);

         // Now send four more messages in a global tx
View Full Code Here

Examples of org.hornetq.core.transaction.impl.XidImpl

         XASession sess2 = conn2.createXASession();

         XAResource res = sess2.getXAResource();

         Xid xid1 = new XidImpl("bq1".getBytes(), 42, "eemeli".getBytes());

         res.start(xid1, XAResource.TMNOFLAGS);

         // Now send four more messages in a global tx
View Full Code Here

Examples of org.hornetq.core.transaction.impl.XidImpl

         XAResource res1 = sess1.getXAResource();

         XAResource res2 = sess2.getXAResource();

         // Pretend to be a transaction manager by interacting through the XAResources
         Xid xid1 = new XidImpl("bq1".getBytes(), 42, "eemeli".getBytes());
         Xid xid2 = new XidImpl("bq2".getBytes(), 42, "frigtard".getBytes());

         log.trace("Sending messages");

         // Send two messages in transaction 1
View Full Code Here

Examples of org.hornetq.core.transaction.impl.XidImpl

         XAResource res1 = sess1.getXAResource();

         XAResource res2 = sess2.getXAResource();

         // Pretend to be a transaction manager by interacting through the XAResources
         Xid xid1 = new XidImpl("bq1".getBytes(), 42, "aapeli".getBytes());
         Xid xid2 = new XidImpl("bq2".getBytes(), 42, "belsebub".getBytes());

         // Send a message in each tx

         res1.start(xid1, XAResource.TMNOFLAGS);
View Full Code Here

Examples of org.hornetq.core.transaction.impl.XidImpl

         XAResource res1 = sess1.getXAResource();

         XAResource res2 = sess2.getXAResource();

         // Pretend to be a transaction manager by interacting through the XAResources
         Xid xid1 = new XidImpl("bq1".getBytes(), 123, "gbtxid1".getBytes());
         Xid xid2 = new XidImpl("bq2".getBytes(), 124, "gbtxid2".getBytes());

         // Send a message in each tx

         res1.start(xid1, XAResource.TMNOFLAGS);
View Full Code Here

Examples of org.neo4j.kernel.impl.transaction.XidImpl

    private byte txCount = (byte) 0;
    XAResource xaResource;

    private void startTx() throws XAException
    {
        dummyXid = new XidImpl( new byte[txCount], new byte[txCount] );
        txCount++;
        xaResource = xaCon.getXaResource();
        xaResource.start( dummyXid, XAResource.TMNOFLAGS );
    }
View Full Code Here

Examples of org.objectweb.joram.client.jms.XidImpl

          setConsumer();
          consumerCnx.start();
          Xid xid = null;
          try {
            if (isXA) {
              xid = new XidImpl(new byte[0], 1, (agentId.toString() + System.currentTimeMillis()).getBytes());
              if (logger.isLoggable(BasicLevel.DEBUG))
                logger.log(BasicLevel.DEBUG, "receiveNoWait: XA xid=" + xid);

              try {
                consumerRes.start(xid, XAResource.TMNOFLAGS);
View Full Code Here

Examples of org.objectweb.jotm.XidImpl

   /**
    * {@inheritDoc}
    */
   public Xid createXid()
   {
      return new XidImpl();
   }
View Full Code Here

Examples of org.teiid.client.xa.XidImpl

  public static XidImpl createXid() {
    byte[] gid = new byte[10];
    byte[] bid = new byte[10];
    RANDOM.nextBytes(gid);
    RANDOM.nextBytes(bid);
    return new XidImpl(0, gid, bid);
  }
View Full Code Here

Examples of org.teiid.client.xa.XidImpl

  public static XidImpl createXid() {
    byte[] gid = new byte[10];
    byte[] bid = new byte[10];
    RANDOM.nextBytes(gid);
    RANDOM.nextBytes(bid);
    return new XidImpl(0, gid, bid);
  }
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.