Examples of buildConfigurationContext()


Examples of org.apache.axis2.context.ConfigurationContextFactory.buildConfigurationContext()



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

    public void testHostConfig() throws AxisFault {
        HostConfiguration  hc = ar.getHostConfiguration();
        assertNotNull(hc);
View Full Code Here

Examples of org.apache.axis2.context.ConfigurationContextFactory.buildConfigurationContext()

    public void testAddingObservs() throws Exception{
        try {
            String filename = "./test-resources/deployment/ConfigWithObservers";
            ConfigurationContextFactory builder = new ConfigurationContextFactory();
            er =  builder.buildConfigurationContext(filename).getAxisConfiguration();
            assertNotNull(er);
        } catch (DeploymentException e) {
            throw new DeploymentException(e);
        }
    }
View Full Code Here

Examples of org.apache.axis2.context.ConfigurationContextFactory.buildConfigurationContext()

            .getName());

    public MailServer(String dir, int popPort, int smtpPort) throws AxisFault {
        try {
            ConfigurationContextFactory builder = new ConfigurationContextFactory();
            configurationContext = builder.buildConfigurationContext(dir);
        } catch (Exception e) {
            log.error(e);
        }
        try {
            log.info("Sleeping for a bit to let the engine start up.");
View Full Code Here

Examples of org.apache.axis2.context.ConfigurationContextFactory.buildConfigurationContext()

    }

    public TCPServer(int port, String dir) throws AxisFault {
        try {
            ConfigurationContextFactory erfac = new ConfigurationContextFactory();
            this.configContext = erfac.buildConfigurationContext(
                    dir);
            Thread.sleep(3000);
            serversocket = new ServerSocket(port);
        } catch (DeploymentException e1) {
            throw new AxisFault(e1);
View Full Code Here

Examples of org.apache.axis2.context.ConfigurationContextFactory.buildConfigurationContext()

        super(testName);
    }

    public void testExtractAddressingInformationFromHeaders() throws AxisFault {
            ConfigurationContextFactory builder = new ConfigurationContextFactory();
            AxisConfiguration er = builder.buildConfigurationContext("target").getAxisConfiguration();
            File file = new File("target/addressing.mar");
            assertTrue(file.exists());
            ModuleDescription moduleDesc = er.getModule(new QName("addressing"));
            assertNotNull(moduleDesc);
    }
View Full Code Here

Examples of org.apache.axis2.context.ConfigurationContextFactory.buildConfigurationContext()

            ConfigurationContextFactory erfac = new ConfigurationContextFactory();
            File file = new File(repositry);
            if (!file.exists()) {
                throw new Exception("repository directory "+ file.getAbsolutePath()+ " does not exists");
            }
            ConfigurationContext er = erfac.buildConfigurationContext(file.getAbsolutePath());
            try {
                Thread.sleep(2000);
            } catch (InterruptedException e1) {
                throw new AxisFault("Thread interuptted", e1);
            }
View Full Code Here

Examples of org.apache.axis2.context.ConfigurationContextFactory.buildConfigurationContext()

        }
        public ConfigurationContext createServerConfigurationContext() throws Exception {
            ConfigurationContextFactory builder = new ConfigurationContextFactory();
            ConfigurationContext configContext =
                builder.buildConfigurationContext(org.apache.axis2.Constants.TESTING_REPOSITORY);

            TransportInDescription transportIn =
                new TransportInDescription(new QName(Constants.TRANSPORT_MAIL));
            transportIn.addParameter(new ParameterImpl("transport.mail.pop3.host", "127.0.0.1"));
            transportIn.addParameter(new ParameterImpl("transport.mail.pop3.user", "server@127.0.0.1"));
View Full Code Here

Examples of org.apache.axis2.context.ConfigurationContextFactory.buildConfigurationContext()

        }

        public ConfigurationContext createClientConfigurationContext() throws Exception {
            ConfigurationContextFactory builder = new ConfigurationContextFactory();
            ConfigurationContext configContext =
                builder.buildConfigurationContext(org.apache.axis2.Constants.TESTING_REPOSITORY);

            TransportInDescription transportIn =
                new TransportInDescription(new QName(Constants.TRANSPORT_MAIL));
            transportIn.addParameter(new ParameterImpl("transport.mail.pop3.host", "127.0.0.1"));
            transportIn.addParameter(new ParameterImpl("transport.mail.pop3.user", "client@127.0.0.1"));
View Full Code Here

Examples of org.apache.axis2.context.ConfigurationContextFactory.buildConfigurationContext()

    public SimpleHTTPServer(String dir, ServerSocket serverSoc) throws AxisFault {
        try {
            this.serverSocket = serverSoc;
            // Class erClass = Class.forName("org.apache.axis2.deployment.EngineContextFactoryImpl");
            ConfigurationContextFactory erfac = new ConfigurationContextFactory();
            this.configurationContext = erfac.buildConfigurationContext(dir);
            Thread.sleep(2000);
        } catch (Exception e1) {
            throw new AxisFault("Thread interuptted", e1);
        }
    }
View Full Code Here

Examples of org.apache.axis2.context.ConfigurationContextFactory.buildConfigurationContext()

            if (!file.exists()) {
                throw new Exception("repository directory does not exists");
            }

            configurationContext =
                erfac.buildConfigurationContext(file.getAbsolutePath());
            try {
                Thread.sleep(2000);
            } catch (InterruptedException e1) {
                throw new AxisFault("Thread interuptted", e1);
            }
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.