Package org.apache.axis2.context

Examples of org.apache.axis2.context.ConfigurationContextFactory




    public void testModuleConfigAtAxisConfig() {
        try {
            ConfigurationContextFactory builder = new ConfigurationContextFactory();
            ar = builder.buildConfigurationContext(repo).getAxisConfiguration();
            ModuleConfiguration moduleConfiguration =
                    ((AxisConfiguration)ar).getModuleConfig(new QName("testModule"));
            assertNotNull(moduleConfiguration);
            Parameter para = moduleConfiguration.getParameter("testModulePara");
            assertNotNull(para);
View Full Code Here


    }


     public void testModuleConfigAtService() {
        try {
            ConfigurationContextFactory builder = new ConfigurationContextFactory();
            ar = builder.buildConfigurationContext(repo).getAxisConfiguration();


            AxisService service = new AxisService();
            service.setName(new QName("testService"));
            ar.addService(service);
View Full Code Here

        this.host = host;
        this.port = port;
        this.user = userid;
        this.password = password;
        try {
            ConfigurationContextFactory builder =
                new ConfigurationContextFactory();
            configurationContext = builder.buildConfigurationContext(dir);
        } catch (Exception e) {
            log.info(e.getMessage());
        }
        try {
            log.info("Sleeping for a bit to let the engine start up.");
View Full Code Here

     */
    public static void main(String args[]) throws AxisFault {
        if (args.length != 1) {
            log.info("java SimpleMailListener <repository>");
        } else {
            ConfigurationContextFactory builder =
                new ConfigurationContextFactory();
            ConfigurationContext configurationContext =
                builder.buildConfigurationContext(args[0]);
            SimpleMailListener sas = new SimpleMailListener();
            TransportInDescription transportIn =
                configurationContext.getAxisConfiguration().getTransportIn(
                    new QName(Constants.TRANSPORT_MAIL));
            if (transportIn != null) {
View Full Code Here

        value2.addChild(subValue2);
        value2.addChild(subValue1);
        operation.addChild(value2);
        operation.addChild(value1);

        ConfigurationContextFactory fac = new ConfigurationContextFactory();
        ConfigurationContext configContext = null;
        try {
            configContext = fac.buildClientConfigurationContext("Search");
        } catch (DeploymentException e) {
            e.printStackTrace();
        }
        try {
            msgContext = new MessageContext(configContext);
View Full Code Here

    String repo ="./test-resources/deployment/ParaLockedRepo";



    protected void setUp() throws Exception {
        ConfigurationContextFactory builder = new ConfigurationContextFactory();
        ar = builder.buildConfigurationContext(repo).getAxisConfiguration();
    }
View Full Code Here

        configurationContext.registerServiceGroupContext(serviceGroupContext);
        return new ServiceContext(axisService, serviceGroupContext);
    }

    public static ConfigurationContext getNewConfigurationContext(String repositry) throws Exception {
        ConfigurationContextFactory erfac = new ConfigurationContextFactory();
        File file = new File(repositry);
        if (!file.exists()) {
            throw new Exception(
                    "repository directory " + file.getAbsolutePath() +
                            " does not exists");
        }
        return erfac.buildConfigurationContext(
                file.getAbsolutePath());
    }
View Full Code Here

    String repo ="./test-resources/deployment/serviceGroupRepo";



    protected void setUp() throws Exception {
        ConfigurationContextFactory builder = new ConfigurationContextFactory();
        ar = builder.buildConfigurationContext(repo).getAxisConfiguration();
    }
View Full Code Here

public class AxisMessageTest extends TestCase {

    public void testAxisMessage() throws Exception {
        String filename = "./test-resources/deployment/AxisMessageTestRepo";
        ConfigurationContextFactory builder = new ConfigurationContextFactory();
        AxisConfiguration er = builder.buildConfigurationContext(filename)
                .getAxisConfiguration();

        assertNotNull(er);
        AxisService service = er.getService("MessagetestService");
        assertNotNull(service);
View Full Code Here

    }

    public void testDeployment() {
        try {
            String filename = "./target/test-resources/deployment";
            ConfigurationContextFactory builder = new ConfigurationContextFactory();
            AxisConfiguration er = builder.buildConfigurationContext(filename)
                    .getAxisConfiguration();

            assertNotNull(er);
            AxisService service = er.getService("service2");
            assertNotNull(service);
View Full Code Here

TOP

Related Classes of org.apache.axis2.context.ConfigurationContextFactory

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.