Examples of suspend()


Examples of bitronix.tm.BitronixTransactionManager.suspend()

    public void testSimpleAssertions() throws Exception {
        if (log.isDebugEnabled()) log.debug("*** getting TM");
        BitronixTransactionManager tm = TransactionManagerServices.getTransactionManager();

        assertNull(tm.suspend());

        try {
            tm.resume(null);
            fail("expected InvalidTransactionException");
        } catch (InvalidTransactionException ex) {
View Full Code Here

Examples of com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionManagerImple.suspend()

      Transaction tx = null;

      try
      {
         toResume = mgr.suspend();

         conn = getConnectionFactory().createConnection();

         // Send a message
View Full Code Here

Examples of com.arjuna.ats.internal.jts.orbspecific.CurrentImple.suspend()

      throw new INVALID_TRANSACTION();
  }

  CurrentImple current = OTSImpleManager.current();

  _originalTransaction = current.suspend();

  if (jtsLogger.logger.isDebugEnabled())
  {
      jtsLogger.logger.debug(DebugLevel.FUNCTIONS, VisibilityLevel.VIS_PUBLIC,
                 com.arjuna.ats.jts.logging.FacilityCode.FAC_OTS, "TopLevelTransaction::begin - suspend transaction "+_originalTransaction);
View Full Code Here

Examples of com.arjuna.mw.wsas.UserActivity.suspend()

     
      ac2 = ua.activityId();

      System.out.println("\nStarted: "+ac2);
     
      ActivityHierarchy ctx = ua.suspend();
     
      System.out.println("\nSuspended: "+ctx);
     
        if (ua.currentActivity() != null) {
            fail("Current activity shoudl be null " + ua.currentActivity());
View Full Code Here

Examples of com.arjuna.mw.wscf.model.twophase.api.CoordinatorManager.suspend()

      cm.enlistParticipant(new TwoPhaseParticipant("p2"));
      cm.enlistSynchronization(new TwoPhaseSynchronization());

      System.out.println("Started: "+cm.identifier()+"\n");

      ActivityHierarchy hier = cm.suspend();

      System.out.println("Suspended: "+hier+"\n");

      if (cm.currentActivity() != null)
      {
View Full Code Here

Examples of com.arjuna.mw.wscf.model.twophase.api.UserCoordinator.suspend()

  {
      ua.begin();

      System.out.println("Started: "+ua.identifier()+"\n");

      ActivityHierarchy hier = ua.suspend();
     
      System.out.println("Suspended: "+hier+"\n");
     
      if (ua.currentActivity() != null) {
            WSCFTestUtils.cleanup(ua);
View Full Code Here

Examples of com.arjuna.mw.wst.BusinessActivityManager.suspend()

                }

                if (businessActivityManager != null)
                {
                    final com.arjuna.mwlabs.wst.ba.context.TxContextImple txContext =
                        (com.arjuna.mwlabs.wst.ba.context.TxContextImple)businessActivityManager.suspend() ;

                    if (txContext != null)
                    {
                        messageContext.setProperty(BusinessActivityConstants.WSBA_PROTOCOL_ATOMIC_OUTCOME, txContext) ;
                    }
View Full Code Here

Examples of com.arjuna.mw.wst.TransactionManager.suspend()

    public static void testSuspendNullTransaction()
            throws Exception
    {
      TransactionManager ut = TransactionManager.getTransactionManager();
 
      TxContext ctx = ut.suspend();

      System.out.println("Suspended: "+ctx);

      assertTrue(ctx == null);
    }
View Full Code Here

Examples of com.arjuna.mw.wst11.TransactionManager.suspend()

    public static void testSuspendNullTransaction()
            throws Exception
    {
      TransactionManager ut = TransactionManager.getTransactionManager();

      TxContext ctx = ut.suspend();

      System.out.println("Suspended: "+ctx);

      assertTrue(ctx == null);
    }
View Full Code Here

Examples of com.atomikos.datasource.xa.XAResourceTransaction.suspend()

        }

        if ( flag == XAResource.TMSUCCESS || flag == XAResource.TMFAIL ) {

            try {
                active.suspend ();
            } catch ( ResourceException re ) {
                errors.push ( re );
                throw new ExtendedSystemException ( "Error in delisting the given XAResource", errors );
            }
            removeXAResourceTransaction ( xares );
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.