Package com.arjuna.mw.wscf.model.as

Examples of com.arjuna.mw.wscf.model.as.CoordinatorManager


      {
    for (int i = 0; i < contexts.length; i++)
        System.out.println(contexts[i]);
      }

      CoordinatorManager cm = CoordinatorManagerFactory.coordinatorManager();
     
      cm.addParticipant(new DemoParticipant(false), Priorities.PARTICIPANT, null);
      cm.addParticipant(new DemoParticipant(false), Priorities.PARTICIPANT, null);

      Outcome res = ua.end();

      if (res instanceof CoordinationOutcome)
      {
View Full Code Here


      {
    for (int i = 0; i < contexts.length; i++)
        System.out.println(contexts[i]);
      }

      CoordinatorManager cm = CoordinatorManagerFactory.coordinatorManager();
     
      cm.addParticipant(new DemoParticipant(true), Priorities.PARTICIPANT, null);
      cm.addParticipant(new DemoParticipant(false), Priorities.PARTICIPANT, null);

      Outcome res = ua.end();

      if (res instanceof CoordinationOutcome)
      {
View Full Code Here

      {
    for (int i = 0; i < contexts.length; i++)
        System.out.println(contexts[i]);
      }

      CoordinatorManager cm = CoordinatorManagerFactory.coordinatorManager();
     
      cm.addParticipant(new DemoParticipant(false), Priorities.PARTICIPANT, null);

      Outcome res = ua.end();

      if (res instanceof CoordinationOutcome)
      {
View Full Code Here

      System.out.println("Started: "+ua.activityName());
     
      ua.setCompletionStatus(Success.instance());

      CoordinatorManager cm = CoordinatorManagerFactory.coordinatorManager();
     
      cm.addParticipant(new DemoParticipant(true), Priorities.PARTICIPANT, null);

      ua.start();

      System.out.println("Started: "+ua.activityName());
     
      ua.setCompletionStatus(Success.instance());
     
      ContextManager manager = new ContextManager();
      com.arjuna.mw.wsas.context.Context[] contexts = manager.contexts();

      if (contexts != null)
      {
    for (int i = 0; i < contexts.length; i++)
        System.out.println(contexts[i]);
      }

      cm.addParticipant(new FailureParticipant(false, FailureParticipant.NESTED_PREPARE), Priorities.PARTICIPANT, null);

      Outcome res = ua.end();

      if (res instanceof CoordinationOutcome)
      {
View Full Code Here

      {
    for (int i = 0; i < contexts.length; i++)
        System.out.println(contexts[i]);
      }

      CoordinatorManager cm = CoordinatorManagerFactory.coordinatorManager();
     
      cm.addParticipant(new DemoParticipant(), Priorities.PARTICIPANT, null);

      Outcome res = ua.end();

      if (res instanceof CoordinationOutcome)
      {
View Full Code Here

      {
    for (int i = 0; i < contexts.length; i++)
        System.out.println(contexts[i]);
      }

      CoordinatorManager cm = CoordinatorManagerFactory.coordinatorManager();
     
      cm.addParticipant(new DemoParticipant(false), Priorities.PARTICIPANT, null);
      cm.addParticipant(new DemoParticipant(false), Priorities.PARTICIPANT, null);

      Outcome res = ua.end();

      if (res instanceof CoordinationOutcome)
      {
View Full Code Here

        ((SOAPContext)theContext).serialiseToElement(root) ;
      doc.appendChild(root);

      System.out.println(com.arjuna.mw.wscf.utils.DomUtil.nodeAsString(doc));

      CoordinatorManager cm = CoordinatorManagerFactory.coordinatorManager();
     
      cm.addParticipant(new DemoParticipant(), Priorities.PARTICIPANT, null);

      System.out.println("\nEnding coordination.");
     
      Outcome res = ua.end();
View Full Code Here

      {
    for (int i = 0; i < contexts.length; i++)
        System.out.println(contexts[i]);
      }

      CoordinatorManager cm = CoordinatorManagerFactory.coordinatorManager();
     
      cm.addParticipant(new DemoParticipant(true), Priorities.PARTICIPANT, null);
      cm.addParticipant(new DemoParticipant(false), Priorities.PARTICIPANT, null);

      Outcome res = ua.end();

      if (res instanceof CoordinationOutcome)
      {
View Full Code Here

      System.out.println("Started: "+ua.activityName());
     
      ua.setCompletionStatus(Success.instance());

      CoordinatorManager cm = CoordinatorManagerFactory.coordinatorManager();
     
      cm.addParticipant(new DemoParticipant(true), Priorities.PARTICIPANT, null);

      ua.start();

      System.out.println("Started: "+ua.activityName());
     
      ua.setCompletionStatus(Success.instance());
     
      ContextManager manager = new ContextManager();
      com.arjuna.mw.wsas.context.Context[] contexts = manager.contexts();

      if (contexts != null)
      {
    for (int i = 0; i < contexts.length; i++)
        System.out.println(contexts[i]);
      }

      cm.addParticipant(new FailureParticipant(false, FailureParticipant.TOPLEVEL_PREPARE), Priorities.PARTICIPANT, null);

      Outcome res = ua.end();

      if (res instanceof CoordinationOutcome)
      {
View Full Code Here

 
      ua.start();

      System.out.println("Started: "+ua.activityName());

      CoordinatorManager cm = CoordinatorManagerFactory.coordinatorManager();
     
      cm.addParticipant(new DemoParticipant(true), Priorities.PARTICIPANT, null);

      ua.start();

      System.out.println("Started: "+ua.activityName());
     
      ua.setCompletionStatus(Success.instance());
     
      ContextManager manager = new ContextManager();
      com.arjuna.mw.wsas.context.Context[] contexts = manager.contexts();

      if (contexts != null)
      {
    for (int i = 0; i < contexts.length; i++)
        System.out.println(contexts[i]);
      }

      cm.addParticipant(new FailureParticipant(false, FailureParticipant.TOPLEVEL_CANCEL), Priorities.PARTICIPANT, null);

      Outcome res = ua.end();

      if (res instanceof CoordinationOutcome)
      {
View Full Code Here

TOP

Related Classes of com.arjuna.mw.wscf.model.as.CoordinatorManager

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.