Package org.apache.axis2.context

Examples of org.apache.axis2.context.ConfigurationContextFactory


    AxisConfiguration er;

    public void testInvalidService() {
        try {
            String filename = "./target/test-resources/InvalidDeployment";
            ConfigurationContextFactory builder = new ConfigurationContextFactory();
            er =
                    builder.buildConfigurationContext(filename)
                    .getAxisConfiguration();
            String msg = (String) er.getFaultyServices().get("invalidService");
            if (msg == null || msg.equals("")) {
                fail("this must failed gracefully with AxisFault ervice specifi module can not" +
                        "refer system pre defined phases");
View Full Code Here


    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"));
        AxisService service = ac.getService("service2");
View Full Code Here

    public void testparseService1() throws PhaseException,
            DeploymentException,
            AxisFault,
            XMLStreamException {
        String filename = "./target/test-resources/deployment";
        ConfigurationContextFactory builder = new ConfigurationContextFactory();
        er =
                builder.buildConfigurationContext(filename)
                .getAxisConfiguration();
    }
View Full Code Here

    private Log log = LogFactory.getLog(getClass());

    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) {
View Full Code Here

    AxisConfiguration er;

    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 ar;
    String repo ="./test-resources/deployment/ServiceGroup";


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

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



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

     AxisConfiguration er;

    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

    protected static Log log = LogFactory.getLog(SimpleMailListener.class
            .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

    public TCPServer() {
    }

    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

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.