Package org.jboss.tm

Examples of org.jboss.tm.TransactionLocal.lock()


              InternalManagedConnectionPool imcp = (InternalManagedConnectionPool)cl.getContext();
              JBossManagedConnectionPool.SubPoolContext subPool = imcp.getSubPoolContext();
              TransactionLocal trackByTx = subPool.getTrackByTx();
              try
              {
                trackByTx.lock();
              }
              catch (Throwable t)
                {
                rethrowAsSystemException("Unable to begin transaction with JCA lazy enlistment scenario", trackByTx.getTransaction(), t);
                }             
View Full Code Here


         }

         // Track by transaction
         try
         {
            trackByTx.lock(trackByTransaction);
         }
         catch (Throwable t)
         {
            JBossResourceException.rethrowAsResourceException("Unable to get connection from the pool for tx=" + trackByTransaction, t);
         }
View Full Code Here

            dump("Got connection from pool tracked by transaction " + cl + " tx=" + trackByTransaction);
        
         // Relock and check/set status
         try
         {
            trackByTx.lock(trackByTransaction);
         }
         catch (Throwable t)
         {
            mcp.returnConnection(cl, false);
            if (traceEnabled)
View Full Code Here

         }

         // Track by transaction
         try
         {
            trackByTx.lock(trackByTransaction);
         }
         catch (Throwable t)
         {
            JBossResourceException.rethrowAsResourceException("Unable to get connection from the pool for tx=" + trackByTransaction, t);
         }
View Full Code Here

            dump("Got connection from pool tracked by transaction " + cl + " tx=" + trackByTransaction);
        
         // Relock and check/set status
         try
         {
            trackByTx.lock(trackByTransaction);
         }
         catch (Throwable t)
         {
            mcp.returnConnection(cl, false);
            if (traceEnabled)
View Full Code Here

               ManagedConnectionPool mcp = (ManagedConnectionPool)cl.getContext();
               SubPoolContext subPool = mcp.getSubPool();
               TransactionLocal trackByTx = subPool.getTrackByTx();
               try
               {
                  trackByTx.lock();
               }
               catch (Throwable t)
               {
                  rethrowAsSystemException("Unable to begin transaction with JCA lazy enlistment scenario",
                                           trackByTx.getTransaction(), t);
View Full Code Here

/*  618 */         return cl;
/*      */       }
/*      */
/*      */       try
/*      */       {
/*  624 */         trackByTx.lock(trackByTransaction);
/*      */       }
/*      */       catch (Throwable t)
/*      */       {
/*  628 */         JBossResourceException.rethrowAsResourceException("Unable to get connection from the pool for tx=" + trackByTransaction, t);
/*      */       }
View Full Code Here

/*  654 */         dump("Got connection from pool tracked by transaction " + cl + " tx=" + trackByTransaction);
/*      */       }
/*      */
/*      */       try
/*      */       {
/*  659 */         trackByTx.lock(trackByTransaction);
/*      */       }
/*      */       catch (Throwable t)
/*      */       {
/*  663 */         mcp.returnConnection(cl, false);
/*  664 */         if (this.traceEnabled)
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.