Package org.apache.axis2.context

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


        public void testPhaseOrderchage() {
            try {
                String filename = "./test-resources/deployment/SystemPhaseRemove";
                ConfigurationContextFactory builder = new ConfigurationContextFactory();
                er = builder.buildConfigurationContext(filename).getAxisConfiguration();
                fail("this must failed gracefully with DeploymentException \"Invalid System predefined " +
                        "inphases , phase order dose not\" +\n support\\n recheck axis2.xml\"");
            } catch (DeploymentException e) {
                e.printStackTrace();
            }
View Full Code Here


    public void testPhaseOrderchage(){
        try {
            String filename = "./test-resources/deployment/BadConfigOrderChange";
            ConfigurationContextFactory builder = new ConfigurationContextFactory();
            er = builder.buildConfigurationContext(filename).getAxisConfiguration();
            fail("this must failed gracefully with DeploymentException \"Invalid System predefined " +
                    "inphases , phase order dose not\" +\n support\\n recheck axis2.xml\"");
        } catch (DeploymentException e) {
           
        }
View Full Code Here

    AxisConfiguration ac;

    public void testModuleEngageMent() throws PhaseException, DeploymentException, AxisFault, XMLStreamException {
        String filename = "./target/test-resources/deployment";
        ConfigurationContextFactory builder = new ConfigurationContextFactory();
        ac = builder.buildConfigurationContext(filename).getAxisConfiguration();
        ModuleDescription module = ac.getModule(new QName("module1"));
        assertNotNull(module);
        ac.engageModule(new QName("module1"));
        ServiceDescription service = ac.getService(new QName("service2"));
        assertNotNull(service);
View Full Code Here

            if (!file.exists()) {
                throw new Exception(
                        "repository directory " + file.getAbsolutePath() +
                        " does not exists");
            }
            ConfigurationContext er = erfac.buildConfigurationContext(
                    file.getAbsolutePath());

            receiver = new SimpleHTTPServer(er, Constants.TESTING_PORT);

            try {
View Full Code Here

            TestCase.assertTrue(
                "Mail repository directory " + file.getAbsolutePath() + " does not exsist",
                file.exists());
            ConfigurationContextFactory builder = new ConfigurationContextFactory();
            SERVER_CONFIG_CONTEXT =
                builder.buildConfigurationContext(file.getAbsolutePath());
        }
        return SERVER_CONFIG_CONTEXT;
    }
   
   
View Full Code Here

            TestCase.assertTrue(
                "Mail repository directory " + file.getAbsolutePath() + " does not exsist",
                file.exists());
            ConfigurationContextFactory builder = new ConfigurationContextFactory();
            CLIENT_CONFIG_CONTEXT =
                builder.buildConfigurationContext(file.getAbsolutePath());
        }
        return CLIENT_CONFIG_CONTEXT;
    }

    public static synchronized void stop() throws AxisFault{
View Full Code Here

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

            configurationContext =
                    erfac.buildConfigurationContext(file.getAbsolutePath());
            try {
                Thread.sleep(2000);
            } catch (InterruptedException e1) {
                throw new AxisFault("Thread interuptted", e1);
            }
View Full Code Here

            .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

        this.user = userid;
        this.password = password;
        try {
            ConfigurationContextFactory builder =
                new ConfigurationContextFactory();
            configurationContext = builder.buildConfigurationContext(dir);
        } catch (Exception e) {
            log.info(e.getMessage());
//            e.printStackTrace();
        }
        try {
View Full Code Here

            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

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.