Package org.jboss.jca.core.spi.transaction.local

Examples of org.jboss.jca.core.spi.transaction.local.TransactionLocal


      //Sub-pool internal managed connection pool
      ManagedConnectionPool imcp = subPoolContext.getSubPool();

      // Are we doing track by transaction?
      TransactionLocal trackByTx = subPoolContext.getTrackByTx()// TODO - Use TSR

      if (trackByTransaction == null || trackByTx == null)
      {
         cl = getSimpleConnection(subject, cri, subPoolContext);
      } //end of if trackByTransaction
View Full Code Here


            if (!isInterleaving())
            {
               cl.setTrackByTx(true);
               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);
               }            
               try
               {
                  trackByTx.set(cl);
               }
               finally
               {
                  trackByTx.unlock();
               }
            }
         }
      }
   }
View Full Code Here

            if (!isInterleaving())
            {
               cl.setTrackByTx(true);
               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);
               }            
               try
               {
                  trackByTx.set(cl);
               }
               finally
               {
                  trackByTx.unlock();
               }
            }
         }
      }
   }
View Full Code Here

      //Sub-pool internal managed connection pool
      ManagedConnectionPool imcp = subPoolContext.getSubPool();

      // Are we doing track by transaction?
      TransactionLocal trackByTx = subPoolContext.getTrackByTx()// TODO - Use TSR

      if (trackByTransaction == null || trackByTx == null)
      {
         cl = getSimpleConnection(subject, cri, subPoolContext);
      } //end of if trackByTransaction
View Full Code Here

TOP

Related Classes of org.jboss.jca.core.spi.transaction.local.TransactionLocal

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.