Package com.arjuna.mw.wsas.context

Examples of com.arjuna.mw.wsas.context.ContextManager


         
          _context = _doc.createElement(_contextName);
   
          if (addBasicContext(_context))
          {
            ContextManager cxman = new ContextManager();
            Context[] contexts = cxman.contexts();
       
            org.w3c.dom.Element root = _doc.createElement(_hlsContext);
         
            if (contexts != null)
            {
View Full Code Here


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

        ContextManager contextManager = new ContextManager();
        Context[] contexts = contextManager.contexts();
        Context theContext1 = null;
        Context theContext2 = null;
        int numContexts = (contexts != null ? contexts.length : 0);

        for (int i = 0; i < numContexts; i++) {
            if (contexts[i] != null) {
                if (theContext1 == null) {
                    theContext1 = contexts[i];
                } else {
                    theContext2 = contexts[i];
                    break;
                }
            }
        }

        if (theContext1 == null || theContext2 == null) {
            fail("Demo contexts not found");
        }

        if (!(theContext1 instanceof DemoSOAPContextImple) ||
                !(theContext1 instanceof DemoSOAPContextImple)) {
            fail("Demo contexts not found");
        }

        ((SOAPContext)theContext1).serialiseToElement(root);
        ((SOAPContext)theContext2).serialiseToElement(root);

        System.out.println("Context is " + root.getTextContent());

      ua.end();

      System.out.println("\nFinished child activity.\n");

      contexts = contextManager.contexts();
        theContext1 = null;
        theContext2 = null;
        numContexts = (contexts != null ? contexts.length : 0);

        for (int i = 0; i < numContexts; i++) {
View Full Code Here

     
      ua.start();

      System.out.println("Started: "+ua.activityName());
     
      ContextManager manager = new ContextManager();
      com.arjuna.mw.wsas.context.Context[] contexts = manager.contexts();
     
      if ((contexts != null) && (contexts.length != 0)) {
            fail("Contexts not null: "+contexts);
        }
    } finally {
View Full Code Here

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

        ContextManager contextManager = new ContextManager();
        Context[] contexts = contextManager.contexts();
        Context theContext = null;

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

        if (theContext == null) {
            fail("Demo context not found");
        }

        if (!(theContext instanceof DemoSOAPContextImple)) {
            fail("Demo context not found");
        }

        ((SOAPContext)theContext).serialiseToElement(root);
     
        System.out.println("Context is " + root.getTextContent());

      ua.end();

      System.out.println("\nFinished child activity.\n");

        contexts = contextManager.contexts();
        theContext = null;

        for (int i = 0; i < contexts.length; i++) {
            if (contexts[i] != null) {
                theContext = contexts[i];
View Full Code Here

    /**
     * @message com.arjuna.mwlabs.wst11.at.context.ArjunaContextImple_1 [com.arjuna.mwlabs.wst11.at.context.ArjunaContextImple_1] - ignoring context:
     */
    public static ArjunaContextImple getContext()
    {
        ContextManager cxman = new ContextManager();
        Context[] contexts = cxman.contexts();

        for (int i = 0; i < contexts.length; i++)
        {
            if (contexts[i].identifier().equals(ArjunaContextImple.class.getName()))
            {
View Full Code Here

    /**
     * @message com.arjuna.mwlabs.wsc.model.jta.context.JTAContextImple_1 [com.arjuna.mwlabs.wsc.model.jta.context.JTAContextImple_1] - ignoring context:
     */
    public static JTAContextImple getContext()
    {
        ContextManager cxman = new ContextManager();
        Context[] contexts = cxman.contexts();
   
        for (int i = 0; i < contexts.length; i++)
        {
            if (contexts[i].identifier().equals(com.arjuna.mwlabs.wsc.model.jta.context.JTAContextImple.class.getName()))
            {
View Full Code Here

    /**
     * @message com.arjuna.mwlabs.wsc.model.twophase.context.ArjunaContextImple_1 [com.arjuna.mwlabs.wsc.model.twophase.context.ArjunaContextImple_1] - ignoring context:
     */
    public static ArjunaContextImple getContext()
    {
        ContextManager cxman = new ContextManager();
        Context[] contexts = cxman.contexts();

        for (int i = 0; i < contexts.length; i++)
        {
            if (contexts[i].identifier().equals(com.arjuna.mwlabs.wsc.model.twophase.context.ArjunaContextImple.class.getName()))
            {
View Full Code Here

    /**
     * @message com.arjuna.mwlabs.wst.at.context.ArjunaContextImple_1 [com.arjuna.mwlabs.wst.at.context.ArjunaContextImple_1] - ignoring context:
     */
    public static ArjunaContextImple getContext()
    {
        ContextManager cxman = new ContextManager();
        Context[] contexts = cxman.contexts();

        for (int i = 0; i < contexts.length; i++)
        {
            if (contexts[i].identifier().equals(ArjunaContextImple.class.getName()))
            {
View Full Code Here

    /**
     * @message com.arjuna.mwlabs.wst11.ba.context.ArjunaContextImple_1 [com.arjuna.mwlabs.wst11.ba.context.ArjunaContextImple_1] - ignoring context:
     */
    public static ArjunaContextImple getContext()
    {
        ContextManager cxman = new ContextManager();
        Context[] contexts = cxman.contexts();

        for (int i = 0; i < contexts.length; i++)
        {
            if (contexts[i].identifier().equals(ArjunaContextImple.class.getName()))
            {
View Full Code Here

    /**
     * @message com.arjuna.mwlabs.wst.ba.context.ArjunaContextImple_1 [com.arjuna.mwlabs.wst.ba.context.ArjunaContextImple_1] - ignoring context:
     */
    public static ArjunaContextImple getContext()
    {
        ContextManager cxman = new ContextManager();
        Context[] contexts = cxman.contexts();

        for (int i = 0; i < contexts.length; i++)
        {
            if (contexts[i].identifier().equals(ArjunaContextImple.class.getName()))
            {
View Full Code Here

TOP

Related Classes of com.arjuna.mw.wsas.context.ContextManager

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.