Package org.apache.axis2.context

Examples of org.apache.axis2.context.OperationContext.activate()


                restored = false;
                Options options_restored = (Options) inObjStream.readObject();
                inObjStream.close();
                inStream.close();

                options_restored.activate(configurationContext);

                restored = true;
                log.debug(
                        "OptionsSaveTest:testSaveAndRestore(): ....restored operation completed.....");
View Full Code Here


                restored = false;
                Options options_restored = (Options) inObjStream.readObject();
                inObjStream.close();
                inStream.close();

                options_restored.activate(configurationContext);

                restored = true;
                System.out.println(
                        "OptionsSaveTest:testSaveAndRestore(): ....restored operation completed.....");
View Full Code Here

       
        if(entry != null) {
          ByteArrayInputStream stream = new ByteArrayInputStream(entry.data);
          ObjectInputStream is = new ObjectInputStream(stream);
          messageContext = (MessageContext) is.readObject();
          messageContext.activate(entry.context);

          OperationContext opCtx = messageContext.getOperationContext();
          if(opCtx != null) {
            MessageContext inMsgCtx = opCtx.getMessageContext(WSDLConstants.MESSAGE_LABEL_IN_VALUE);
            if(inMsgCtx != null) {
View Full Code Here

            entry.message = null;
          } else {
            ByteArrayInputStream stream = new ByteArrayInputStream(entry.data);
            ObjectInputStream is = new ObjectInputStream(stream);
            messageContext = (MessageContext) is.readObject();
            messageContext.activate(entry.context);
 
            OperationContext opCtx = messageContext.getOperationContext();
            if(opCtx != null) {
              MessageContext inMsgCtx = opCtx.getMessageContext(WSDLConstants.MESSAGE_LABEL_IN_VALUE);
              if(inMsgCtx != null) {
View Full Code Here

                        MessageContext msgContext2 = (MessageContext) inObjStream.readObject();
                        inObjStream.close();
                        inStream.close();

                        msgContext2.activate(configurationContext);

                        restoredOk = true;
                        log.debug(title + "....restored message context.....");

                        // now put the restored message context in the global
View Full Code Here

                log.debug(title + "restoring message context .....");
                restoredMessageContext = false;
                msgContext2 = (MessageContext) inObjStream.readObject();
                inObjStream.close();
                inStream.close();
                msgContext2.activate(mc1.getConfigurationContext());

                // no exceptions, set restoredMessageContext to true
                restoredMessageContext = true;

                // VERY IMPORTANT: replace testcase's messagecontext object with the new restored one
View Full Code Here

                restoredSimpleMsg = (MessageContext) inObjStream.readObject();
                inObjStream.close();
                inStream.close();

                restoredSimpleMsg.activate(configurationContext);

                restoredMessageContext = true;
                log.debug(title + "....restored message context.....");

                // compare to original execution chain
View Full Code Here

                restoredSimpleMsg = (MessageContext) inObjStream.readObject();
                inObjStream.close();
                inStream.close();

                restoredSimpleMsg.activate(configurationContext);

                restoredMessageContext = true;
                log.debug(title + "....restored message context.....");

                // compare to original execution chain
View Full Code Here

                restoredMC = (MessageContext) inObjStream.readObject();
                inObjStream.close();
                inStream.close();

                restoredMC.activate(configurationContext);

                restoredMessageContext = true;
                log.debug(title + "....restored message context.....");

                // get the table after the restore
View Full Code Here

                        MessageContext msgContext2 = (MessageContext) inObjStream.readObject();
                        inObjStream.close();
                        inStream.close();

                        msgContext2.activate(configurationContext);

                        restoredMessageContext = true;
                        log.debug(title + "....restored message context.....");

                        // compare to original execution chain
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.