Package javax.resource.spi

Examples of javax.resource.spi.LocalTransaction


/*     */   }
/*     */
/*     */   public LocalTransaction getLocalTransaction()
/*     */     throws ResourceException
/*     */   {
/* 427 */     LocalTransaction tx = new JmsLocalTransaction(this);
/* 428 */     if (log.isTraceEnabled())
/* 429 */       log.trace("LocalTransaction=" + tx);
/* 430 */     return tx;
/*     */   }
View Full Code Here


      if (HornetQRAManagedConnection.trace)
      {
         HornetQRAManagedConnection.log.trace("getLocalTransaction()");
      }

      LocalTransaction tx = new HornetQRALocalTransaction(this);

      if (HornetQRAManagedConnection.trace)
      {
         HornetQRAManagedConnection.log.trace("LocalTransaction=" + tx);
      }
View Full Code Here

   public void tidyup() throws ResourceException
   {
      // We have a hanging transaction
      if (localTransaction.get())
      {
         LocalTransaction local = null;
         ManagedConnection mc = getManagedConnection();
         try
         {
            local = mc.getLocalTransaction();
         }
         catch (Throwable t)
         {
            JBossResourceException.rethrowAsResourceException("Unfinished local transaction - " +
                  "error getting local transaction from " + this, t);
         }
         if (local == null)
            throw new ResourceException("Unfinished local transaction but managed connection does not " +
                  "provide a local transaction. " + this);
         else
         {
            local.rollback();
            getLog().debug("Unfinished local transaction was rolled back." + this);
         }
      }
   }
View Full Code Here

      if (HornetQRAManagedConnection.trace)
      {
         HornetQRAManagedConnection.log.trace("getLocalTransaction()");
      }

      LocalTransaction tx = new HornetQRALocalTransaction(this);

      if (HornetQRAManagedConnection.trace)
      {
         HornetQRAManagedConnection.log.trace("LocalTransaction=" + tx);
      }
View Full Code Here

      public void tidyup() throws ResourceException
      {
         // We have a hanging transaction
         if (localTransaction.get())
         {
            LocalTransaction local = null;
            ManagedConnection mc = getManagedConnection();
            try
            {
               local = mc.getLocalTransaction();
            }
            catch (Throwable t)
            {
               JBossResourceException.rethrowAsResourceException("Unfinished local transaction - error getting local transaction from " + this, t);
            }
            if (local == null)
               throw new ResourceException("Unfinished local transaction but managed connection does not provide a local transaction. " + this);
            else
            {
               local.rollback();
               log.debug("Unfinished local transaction was rolled back." + this);
            }
         }
      }
View Full Code Here

TOP

Related Classes of javax.resource.spi.LocalTransaction

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.