Package org.apache.axis2.context

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


           
            // Do the same for the second Message Context
            MessageContext mcRead2 = deserializeMessageContext(baos2);
            ConfigurationContext configContext2 = endpointDesc2.getServiceDescription().getAxisConfigContext();
            assertNotNull(configContext2);
            mcRead2.activate(configContext2);
            AxisService asRead2 = mcRead2.getAxisService();
            assertNotNull(asRead2);
            assertEquals(axisService2.getName(), asRead2.getName());
            assertSame(axisService2, asRead2);
            AxisServiceGroup agRead2 = mcRead2.getAxisServiceGroup();
View Full Code Here


            MessageContext mcRead1 = deserializeMessageContext(baos1);
            ConfigurationContext configContext1 = endpointDesc1.getServiceDescription().getAxisConfigContext();
            assertSame(configContext1, configContext2);
            assertNotNull(configContext1);
            mcRead1.activate(configContext1);
            AxisService asRead1 = mcRead1.getAxisService();
            assertNotNull(asRead1);
            assertEquals(axisService1.getName(), asRead1.getName());
            assertSame(axisService1, asRead1);
            AxisServiceGroup agRead1 = mcRead1.getAxisServiceGroup();
View Full Code Here

            // context deserialization to connect the message context to existing runtime
            // objects such as AxisService
            MessageContext mcRead1 = deserializeMessageContext(baos1);
            ConfigurationContext configContext1 = endpointDesc1.getServiceDescription().getAxisConfigContext();
            assertNotNull(configContext1);
            mcRead1.activate(configContext1);
            AxisService asRead1 = mcRead1.getAxisService();
            assertNotNull(asRead1);
            assertEquals(axisService1.getName(), asRead1.getName());
            assertSame(axisService1, asRead1);
            AxisServiceGroup agRead1 = mcRead1.getAxisServiceGroup();
View Full Code Here

            // Do the same for the second Message Context
            MessageContext mcRead2 = deserializeMessageContext(baos2);
            ConfigurationContext configContext2 = endpointDesc2.getServiceDescription().getAxisConfigContext();
            assertSame(configContext1, configContext2);
            assertNotNull(configContext2);
            mcRead2.activate(configContext2);
            AxisService asRead2 = mcRead2.getAxisService();
            assertNotNull(asRead2);
            assertEquals(axisService2.getName(), asRead2.getName());
            assertSame(axisService2, asRead2);
            AxisServiceGroup agRead2 = mcRead2.getAxisServiceGroup();
View Full Code Here

            // context deserialization to connect the message context to existing runtime
            // objects such as AxisService
            MessageContext mcRead1 = deserializeMessageContext(baos1);
            ConfigurationContext configContext1 = endpointDesc1_redo.getServiceDescription().getAxisConfigContext();
            assertNotNull(configContext1);
            mcRead1.activate(configContext1);
            AxisService asRead1 = mcRead1.getAxisService();
            assertNotNull(asRead1);
            assertEquals(axisService1_redo.getName(), asRead1.getName());
            assertSame(axisService1_redo, asRead1);
            AxisServiceGroup agRead1 = mcRead1.getAxisServiceGroup();
View Full Code Here

            // Do the same for the second Message Context
            MessageContext mcRead2 = deserializeMessageContext(baos2);
            ConfigurationContext configContext2 = endpointDesc2_redo.getServiceDescription().getAxisConfigContext();
            assertNotNull(configContext2);
            assertSame(configContext1, configContext2);
            mcRead2.activate(configContext2);
            AxisService asRead2 = mcRead2.getAxisService();
            assertNotNull("AxisService was not activated", asRead2);
            assertEquals(axisService2_redo.getName(), asRead2.getName());
            assertSame(axisService2_redo, asRead2);
            AxisServiceGroup agRead2 = mcRead2.getAxisServiceGroup();
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

                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

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.