Examples of enlist()


Examples of org.jboss.resource.connectionmanager.ConnectionListener.enlist()

         cl = cm.getManagedConnection(subject, cri);

         assertEquals(1, cm.getPoolingStrategy().getInUseConnectionCount());

         assertNotNull(cl);
         cl.enlist();
        
         assertNotNull(tm);
         tm.commit();
        
         assertEquals(0, cm.getPoolingStrategy().getInUseConnectionCount());
View Full Code Here

Examples of org.jboss.resource.connectionmanager.ConnectionListener.enlist()

         cl = cm.getManagedConnection(subject, cri);

         assertEquals(1, cm.getPoolingStrategy().getInUseConnectionCount());

         assertNotNull(cl);
         cl.enlist();

         Thread.sleep(2500L);

         assertEquals(0, cm.getPoolingStrategy().getInUseConnectionCount());
        
View Full Code Here

Examples of org.jboss.resource.connectionmanager.ConnectionListener.enlist()

                        tm.begin();

                        long startGetConnection = System.currentTimeMillis();
                        cl = cm.getManagedConnection(subject, cri);
                        cl.enlist();
                        long endGetConnection = System.currentTimeMillis();

                        TxConnectionManagerStressTestCase.this.connectionCount.incrementAndGet();

                        Thread.sleep(sleepTime);
View Full Code Here

Examples of org.jboss.resource.connectionmanager.ConnectionListener.enlist()

               tm.begin();
               Transaction tx = tm.getTransaction();
               tx.registerSynchronization(this);

               cl = cm.getManagedConnection(subject, cri);
               cl.enlist();

               latch.await(20, TimeUnit.SECONDS);

               assertNotNull(tm);
View Full Code Here

Examples of org.jboss.seam.transaction.SeamTransaction.enlist()

   {
      SeamTransaction transaction = userTransactionInstance.get();
      if (transaction.isActive())
      {
         synchronizationRegistered = true;
         transaction.enlist(delegate);
         try
         {
            transaction.registerSynchronization(this);
         }
         catch (Exception e)
View Full Code Here

Examples of org.jboss.seam.transaction.UserTransaction.enlist()

   private void joinTransaction() throws SystemException
   {
      UserTransaction transaction = Transaction.instance();
      if ( transaction.isActive() )
      {
         transaction.enlist(entityManager);
         try
         {
            transaction.registerSynchronization(this);
            synchronizationRegistered = true;
         }
View Full Code Here

Examples of org.jboss.seam.transaction.UserTransaction.enlist()

   private void joinTransaction() throws SystemException
   {
      UserTransaction transaction = Transaction.instance();
      if ( transaction.isActive() )
      {
         transaction.enlist(entityManager);
         try
         {
            transaction.registerSynchronization(this);
            synchronizationRegistered = true;
         }
View Full Code Here

Examples of org.ofbiz.entity.transaction.DebugXaResource.enlist()

                }
                // enlist for XAResource debugging
                if (beganTrans && TransactionUtil.debugResources) {
                    DebugXaResource dxa = new DebugXaResource(modelService.name);
                    try {
                        dxa.enlist();
                    } catch (Exception e) {
                        Debug.logError(e, module);
                    }
                }
            }
View Full Code Here

Examples of org.ofbiz.entity.transaction.DebugXaResource.enlist()

                            beganTrans = TransactionUtil.begin(modelService.transactionTimeout);
                            // enlist for XAResource debugging
                            if (beganTrans && TransactionUtil.debugResources) {
                                DebugXaResource dxa = new DebugXaResource(modelService.name);
                                try {
                                    dxa.enlist();
                                } catch (Exception e) {
                                    Debug.logError(e, module);
                                }
                            }
View Full Code Here

Examples of org.ofbiz.entity.transaction.DebugXaResource.enlist()

                }
                // enlist for XAResource debugging
                if (beganTrans && TransactionUtil.debugResources) {
                    DebugXaResource dxa = new DebugXaResource(service.name);
                    try {
                        dxa.enlist();
                    } catch (Exception e) {
                        Debug.logError(e, module);
                    }
                }
            }
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.