Examples of buildConfigurationContext()


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

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

             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()

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

    public static synchronized void stop() {
        if (count == 1) {
View Full Code Here

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

            ServletContext context = config.getServletContext();
            String repoDir = context.getRealPath("/WEB-INF");
            ConfigurationContextFactory erfac =
                    new ConfigurationContextFactory();
            configContext =
                    erfac.buildConfigurationContext(repoDir);
            configContext.setProperty(Constants.CONTAINER_MANAGED,
                    Constants.VALUE_TRUE);
            configContext.setRootDir(new File(context.getRealPath("/WEB-INF")));
            lister = new ListingAgent(configContext);
            context.setAttribute(CONFIGURATION_CONTEXT, configContext);
View Full Code Here

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

     */
    public SimpleHTTPServer(String dir, int port) throws AxisFault {
        try {
            this.port = port;
            ConfigurationContextFactory erfac = new ConfigurationContextFactory();
            this.configurationContext = erfac.buildConfigurationContext(dir);
            Thread.sleep(2000);
        } catch (Exception e1) {
            throw new AxisFault(e1);
        }
    }
View Full Code Here

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



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

    public void testServiceGroup() throws AxisFault {
        ServiceGroupDescription sgd = ar.getServiceGroup("serviceGroup");
        assertNotNull(sgd);
View Full Code Here

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

    }

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

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

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

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


    public void testServiceGroup() throws AxisFault {
        ConfigurationContextFactory builder = new ConfigurationContextFactory();
        ar = builder.buildConfigurationContext(repo).getAxisConfiguration();
        ServiceDescription servie = ar.getService("serevice1");
        assertNotNull(servie);
        servie = ar.getService("serevice4");
        assertNotNull(servie);
View Full Code Here

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

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

}
View Full Code Here

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

            DeploymentException,
            AxisFault,
            XMLStreamException {
        String filename = "./target/test-resources/deployment";
        ConfigurationContextFactory builder = new ConfigurationContextFactory();
        cc = builder.buildConfigurationContext(filename);
        AxisEngine engine =new  AxisEngine(cc);
        assertNotNull(engine);
        String myTestVal = "There is a value";
        String key = (String)engine.store(cc,myTestVal);
        assertNotNull(key);
View Full Code Here

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



    public void testDispatch() throws Exception {
        ConfigurationContextFactory builder = new ConfigurationContextFactory();
        ar = builder.buildConfigurationContext(repo).getAxisConfiguration();
        ArrayList list = ar.getInPhasesUptoAndIncludingPostDispatch();
        for (int i = 0; i < list.size(); i++) {
            Phase phase = (Phase) list.get(i);
            if(PhaseMetadata.PHASE_DISPATCH.equals(phase.getPhaseName())){
                assertEquals(3,phase.getHandlerCount());
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.