Package org.apache.xbean.spring.context

Examples of org.apache.xbean.spring.context.ClassPathXmlApplicationContext


        // Wait for all messages to be processed
        Thread.sleep(50);
    }

    protected AbstractXmlApplicationContext createBeanFactory() {
        return new ClassPathXmlApplicationContext("org/apache/servicemix/eip/spring.xml");
    }
View Full Code Here


            System.out.println();

            ApplicationContext context = null;
            if (args.length <= 0) {
                System.out.println("Loading Apache ServiceMix from servicemix.xml on the CLASSPATH");
                context = new ClassPathXmlApplicationContext("servicemix.xml");
            }
            else {
                String file = args[0];

                if (file.equals("-?") || file.equals("?") || file.equals("--help") || file.equals("-h")) {
                    System.out.println("Usage: Main [-v1] [xmlConfigFile]");
                    System.out.println("If an XML config file is not specified then servicemix.xml is used from the CLASSPATH");
                    return;
                }
               
                List processors = new ArrayList();
                processors.add(new ClassLoaderXmlPreprocessor(new FileSystemRepository(new File("."))));
                if (file.equals("-v1")) {
                   
                    processors.add(new XBeanProcessor());
                    if (args.length <= 1) {
                        System.out.println("Loading Apache ServiceMix (compatible 1.x) from servicemix.xml on the CLASSPATH");
                        context = new ClassPathXmlApplicationContext("servicemix.xml", processors);
                    }
                    else {
                        file = args[1];
                        System.out.println("Loading Apache ServiceMix (compatible 1.x) from file: " + file);
                        context = new FileSystemXmlApplicationContext(file, processors);
View Full Code Here

public class PerformanceRoutePojoTest extends CamelSpringTestSupport {

    private int size = 200;
   
    protected AbstractXmlApplicationContext createApplicationContext() {
        return new ClassPathXmlApplicationContext("org/apache/camel/component/jms/tuning/PerformanceRoutePojoTest-context.xml");
    }
View Full Code Here

    protected int getExpectedRouteCount() {
        return 0;
    }
   
    protected AbstractXmlApplicationContext createApplicationContext() {
        return new ClassPathXmlApplicationContext("org/apache/camel/component/jms/tx/ActiveMQWithoutTransactionManager.xml");
    }
View Full Code Here

        // now we should be able to poll a message from each queue
        // Thread.sleep(99999999);
    }

    protected AbstractXmlApplicationContext createApplicationContext() {
        return new ClassPathXmlApplicationContext(new String[]{"classpath:org/apache/camel/component/jms/issues/broker.xml",
            "classpath:org/apache/camel/component/jms/issues/camelBrokerClient.xml"});
    }
View Full Code Here

        assertEquals(200, status);
        filePost.releaseConnection();
    }

    protected AbstractXmlApplicationContext createBeanFactory() {
        return new ClassPathXmlApplicationContext("org/apache/servicemix/http/spring.xml");
    }
View Full Code Here

    protected void tearDown() throws Exception {
        super.tearDown();
    }

    protected AbstractXmlApplicationContext createBeanFactory() {
        return new ClassPathXmlApplicationContext("org/apache/servicemix/jbi/security/secure.xml");
    }
View Full Code Here

        assertNotNull("Could not find object in Spring for key: " + name, answer);
        return answer;
    }

    protected AbstractXmlApplicationContext createBeanFactory() {
        return new ClassPathXmlApplicationContext("org/apache/servicemix/components/reflection/example.xml");
    }
View Full Code Here

    }

    @Override
    protected AbstractXmlApplicationContext createBeanFactory() {
        return new ClassPathXmlApplicationContext(
                "org/apache/servicemix/cxfbc/jms_transport.xml");
    }
View Full Code Here

        assertEquals("IONA PLC", retailTicker.value);
    }

    @Override
    protected AbstractXmlApplicationContext createBeanFactory() {
        return new ClassPathXmlApplicationContext(
            "org/apache/servicemix/cxfbc/interceptors/xbean.xml");
    }
View Full Code Here

TOP

Related Classes of org.apache.xbean.spring.context.ClassPathXmlApplicationContext

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.