Package org.jboss.jca.core.connectionmanager.transaction

Examples of org.jboss.jca.core.connectionmanager.transaction.TransactionKey


         throw new ResourceException("Unable to obtain lock", ie);
      }
      try
      {
         // Already got one
         ConnectionListener cl = (ConnectionListener)tsr.getResource(new TransactionKey(trackByTransaction));
         if (cl != null)
         {
            log.tracef("Previous connection tracked by transaction=%s tx=%s", cl, trackByTransaction);
            return cl;
         }
View Full Code Here


      }
      try
      {
         // Check we weren't racing with another transaction
         ConnectionListener other =
            (ConnectionListener)tsr.getResource(new TransactionKey(trackByTransaction));

         if (other != null)
         {
            mcp.returnConnection(cl, false);

            log.tracef("Another thread already got a connection tracked by transaction=%s tx=%s",
                       other, trackByTransaction);

            cl = other;
         }

         // This is the connection for this transaction
         cl.setTrackByTx(true);
         tsr.putResource(new TransactionKey(trackByTransaction), cl);

         log.tracef("Using connection from pool tracked by transaction=%s tx=%s", cl, trackByTransaction);

         return cl;
      }
View Full Code Here

                                           tx, t);
               }

               try
               {
                  transactionSynchronizationRegistry.putResource(new TransactionKey(tx), cl);
               }
               finally
               {
                  lock.unlock();
               }
View Full Code Here

TOP

Related Classes of org.jboss.jca.core.connectionmanager.transaction.TransactionKey

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.