Package org.jboss.jms.tx

Examples of org.jboss.jms.tx.MessagingXid


      super.tearDown();
   }
  
   protected Transaction createXATx() throws Exception
   {
      MessagingXid xid =
         new MessagingXid(new GUID().toString().getBytes(), 345, new GUID().toString().getBytes());
     
      return tr.createTransaction(xid);
   }
View Full Code Here


           
            XAResource res = sess.getXAResource();
           
            MessageProducer prod = sess.createProducer(queue);
           
            xid1 = new MessagingXid("blah1".getBytes(), 42, "blahblah1".getBytes());
                    
            TextMessage tm = sess.createTextMessage("message1");
           
            res.start(xid1, XAResource.TMNOFLAGS);
           
            prod.send(tm);
           
            res.end(xid1, XAResource.TMSUCCESS);
           
            res.prepare(xid1);
        
         }
        
         {
           
            XASession sess = conn.createXASession();
           
            XAResource res = sess.getXAResource();
           
            MessageProducer prod = sess.createProducer(queue);
           
            xid2 = new MessagingXid("blah2".getBytes(), 42, "blahblah2".getBytes());
                    
            TextMessage tm = sess.createTextMessage("message1");
           
            res.start(xid2, XAResource.TMNOFLAGS);
           
View Full Code Here

         XASession xsess1 = xconn1.createXASession();

         XAResource res1 = xsess1.getXAResource();

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

         res1.start(xid1, XAResource.TMNOFLAGS);

         MessageConsumer cons = xsess1.createConsumer(queue1);
View Full Code Here

         XASession xsess1 = xconn1.createXASession();

         XAResource res1 = xsess1.getXAResource();

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

         res1.start(xid1, XAResource.TMNOFLAGS);

         MessageConsumer cons = xsess1.createConsumer(queue1);
View Full Code Here

            int formatId = rs.getInt(3);

            byte[] globalTxId = getVarBinaryColumn(rs, 4);

            Xid xid = new MessagingXid(branchQual, formatId, globalTxId);

            // create a tx info object with the result set detailsdetails
            txInfo = new PreparedTxInfo(txId, xid);

            transactions.add(txInfo);
View Full Code Here

     
      xids = new MessagingXid[num];
     
      for (int i = 0; i < num; i++)
      {
         xids[i] = new MessagingXid();
        
         xids[i].read(is);
      }
   }
View Full Code Here

      super.tearDown();
   }

   protected Transaction createXATx() throws Exception
   {
      MessagingXid xid =
         new MessagingXid(new GUID().toString().getBytes(), 345, new GUID().toString().getBytes());

      return tr.createTransaction(xid);
   }
View Full Code Here

            int formatId = rs.getInt(3);

            byte[] globalTxId = getVarBinaryColumn(rs, 4);

            Xid xid = new MessagingXid(branchQual, formatId, globalTxId);

            // create a tx info object with the result set detailsdetails
            txInfo = new PreparedTxInfo(txId, xid);

            transactions.add(txInfo);
View Full Code Here

         testPacket(resp, PacketSupport.RESP_CONNECTION_GETCLIENTID);                          
      }
     
      public void testConnectionGetClientPreparedTransactionsResponse() throws Exception
      {
         MessagingXid xid = new MessagingXid("okokko".getBytes(), 23, "okjokokdd".getBytes());        
                 
         ResponseSupport resp =
            new ConnectionGetPreparedTransactionsResponse(new MessagingXid[] { xid });
                
         testPacket(resp, PacketSupport.RESP_CONNECTION_GETPREPAREDTRANSACTIONS);                          
View Full Code Here

            int formatId = rs.getInt(3);

            byte[] globalTxId = getVarBinaryColumn(rs, 4);

            Xid xid = new MessagingXid(branchQual, formatId, globalTxId);

            // create a tx info object with the result set detailsdetails
            txInfo = new PreparedTxInfo(txId, xid);

            transactions.add(txInfo);
View Full Code Here

TOP

Related Classes of org.jboss.jms.tx.MessagingXid

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.