Package com.arjuna.mwlabs.wscf.model.twophase.arjunacore

Examples of com.arjuna.mwlabs.wscf.model.twophase.arjunacore.ACCoordinator


  {
    try
    {
      CoordinatorServiceImple coordManager = (CoordinatorServiceImple) _coordManager;
      CoordinatorControl theControl = coordManager.coordinatorControl();
      ACCoordinator subordinateTransaction = theControl.createSubordinate();

      /*
       * Now add the registrar for this specific coordinator to the
       * mapper.
       */

      subordinateTransaction.enlistSynchronization(new CleanupSynchronization(subordinateTransaction.get_uid().stringForm(), _theRegistrar));

      _theRegistrar.associate(subordinateTransaction);

      return subordinateTransaction;
    }
View Full Code Here


  public void initialiseContext(Object param)
  {
    try
    {
      ACCoordinator currentCoordinator = (ACCoordinator) param;

      ActivityHierarchy hier = null;

      try
      {
        hier = UserActivityFactory.userActivity().currentActivity();
      }
      catch (SystemException ex)
      {
        ex.printStackTrace();
      }

      if ((currentCoordinator != null) && (hier != null))
      {
        /*
         * Do the manditory stuff first.
         */

        ActionHierarchy txHier = currentCoordinator.getHierarchy();
                final int depth = txHier.depth() ;
                _identifierValues = new String[depth] ;
                _expiresValues = new int[depth] ;

                _identifierValues[0] = txHier.getDeepestActionUid().stringForm() ;
View Full Code Here

  {
    try
    {
      CoordinatorServiceImple coordManager = (CoordinatorServiceImple) _coordManager;
      CoordinatorControl theControl = coordManager.coordinatorControl();
      ACCoordinator subordinateTransaction = theControl.createSubordinate();
     
      /*
       * Now add the registrar for this specific coordinator to the
       * mapper.
       */

      subordinateTransaction.enlistSynchronization(new CleanupSynchronization(subordinateTransaction.get_uid().stringForm(), _theRegistrar));

      _theRegistrar.associate(subordinateTransaction);
     
      return subordinateTransaction;
    }
View Full Code Here

    public void initialiseContext(Object param)
    {
        try
        {
            ACCoordinator currentCoordinator = (ACCoordinator) param;

            ActivityHierarchy hier = null;
           
            try
            {
                hier = UserActivityFactory.userActivity().currentActivity();
            }
            catch (SystemException ex)
            {
                ex.printStackTrace();
            }

            if ((currentCoordinator != null) && (hier != null))
            {
                /*
                 * Do the manditory stuff first.
                 */

                ActionHierarchy txHier = currentCoordinator.getHierarchy();
                final int depth = txHier.depth() ;
                _identifierValues = new String[depth] ;
                _expiresValues = new int[depth] ;
               
                _identifierValues[0] = txHier.getDeepestActionUid().stringForm() ;
View Full Code Here

  public void initialiseContext(Object param)
  {
    try
    {
      ACCoordinator currentCoordinator = (ACCoordinator) param;
           
      ActivityHierarchy hier = null;

      try
      {
        hier = UserActivityFactory.userActivity().currentActivity();
      }
      catch (SystemException ex)
      {
        ex.printStackTrace();
      }

      if ((currentCoordinator != null) && (hier != null))
      {
        /*
         * Do the manditory stuff first.
         */

        ActionHierarchy txHier = currentCoordinator.getHierarchy();
                final int depth = txHier.depth() ;
                _identifierValues = new String[depth] ;
                _expiresValues = new int[depth] ;
               
                _identifierValues[0] = txHier.getDeepestActionUid().stringForm() ;
View Full Code Here

    public void initialiseContext(Object param)
    {
        try
        {
            ACCoordinator currentCoordinator = (ACCoordinator) param;

            ActivityHierarchy hier = null;
           
            try
            {
                hier = UserActivityFactory.userActivity().currentActivity();
            }
            catch (SystemException ex)
            {
                ex.printStackTrace();
            }

            if ((currentCoordinator != null) && (hier != null))
            {
                /*
                 * Do the manditory stuff first.
                 */

                ActionHierarchy txHier = currentCoordinator.getHierarchy();
                final int depth = txHier.depth() ;
                _identifierValues = new String[depth] ;
                _expiresValues = new int[depth] ;
               
                _identifierValues[0] = txHier.getDeepestActionUid().stringForm() ;
View Full Code Here

  public void initialiseContext(Object param)
  {
    try
    {
      ACCoordinator currentCoordinator = (ACCoordinator) param;
           
      ActivityHierarchy hier = null;

      try
      {
        hier = UserActivityFactory.userActivity().currentActivity();
      }
      catch (SystemException ex)
      {
        ex.printStackTrace();
      }

      if ((currentCoordinator != null) && (hier != null))
      {
        /*
         * Do the manditory stuff first.
         */

        ActionHierarchy txHier = currentCoordinator.getHierarchy();
                final int depth = txHier.depth() ;
                _identifierValues = new String[depth] ;
                _expiresValues = new int[depth] ;
               
                _identifierValues[0] = txHier.getDeepestActionUid().stringForm() ;
View Full Code Here

  {
    try
    {
      CoordinatorServiceImple coordManager = (CoordinatorServiceImple) _coordManager;
      CoordinatorControl theControl = coordManager.coordinatorControl();
      ACCoordinator subordinateTransaction = theControl.createSubordinate();
     
      /*
       * Now add the registrar for this specific coordinator to the
       * mapper.
       */

      subordinateTransaction.enlistSynchronization(new CleanupSynchronization(subordinateTransaction.get_uid().stringForm(), _theRegistrar));

      _theRegistrar.associate(subordinateTransaction);
     
      return subordinateTransaction;
    }
View Full Code Here

TOP

Related Classes of com.arjuna.mwlabs.wscf.model.twophase.arjunacore.ACCoordinator

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.