Package org.jboss.jms.tx

Examples of org.jboss.jms.tx.MessagingXAResource


         tm.begin();

         // Create 2 sessions and enlist them
         XASession sess1 = conn.createXASession();
         MessagingXAResource res1 = (MessagingXAResource)sess1.getXAResource();
         XASession sess2 = conn.createXASession();
         MessagingXAResource res2 = (MessagingXAResource)sess2.getXAResource();
         res1.setPreventJoining(true);
         res2.setPreventJoining(true);

         Transaction tx = tm.getTransaction();
         tx.enlistResource(res1);
         tx.enlistResource(res2);
View Full Code Here


         tm.begin();

         // Create 2 sessions and enlist them
         XASession sess1 = conn.createXASession();
         MessagingXAResource res1 = (MessagingXAResource)sess1.getXAResource();
         XASession sess2 = conn.createXASession();
         MessagingXAResource res2 = (MessagingXAResource)sess2.getXAResource();
         res1.setPreventJoining(true);
         res2.setPreventJoining(true);

         Transaction tx = tm.getTransaction();
         tx.enlistResource(res1);
         tx.enlistResource(res2);
View Full Code Here

/*     */
/* 129 */     this.dupsOKBatchSize = dupsOKBatchSize;
/*     */
/* 131 */     if (xa)
/*     */     {
/* 134 */       this.xaResource = new MessagingXAResource(parent.getResourceManager(), this);
/*     */     }
/*     */
/* 140 */     if (transacted)
/*     */     {
/* 143 */       this.currentTxId = parent.getResourceManager().createLocalTx();
View Full Code Here

      this.dupsOKBatchSize = dupsOKBatchSize;

      if (xa)
      {
         // Create an XA resource
         xaResource = new MessagingXAResource(parent.getResourceManager(), this);
      }

      // Note we create the transaction even if XA - XA transactions must behave like
      // local tx when not enlisted in a global tx
View Full Code Here

TOP

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

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.