Package org.mule.config.spring

Examples of org.mule.config.spring.SpringXmlConfigurationBuilder


  {
    setProperty("ebms.mode",new String[]{"normal","oracle"},"normal");
    setProperty("ebms.protocol",new String[]{"http","https"},"http");
    setProperty("ebms.database",new String[]{"hsqldb","mysql","postgresql","mssql","oracle"},"hsqldb");
    DefaultMuleContextFactory muleContextFactory = new DefaultMuleContextFactory();
    SpringXmlConfigurationBuilder configBuilder = new SpringXmlConfigurationBuilder(args.length == 0 ? "main.xml" : args[0]);
    MuleContext muleContext = muleContextFactory.createMuleContext(configBuilder);
    muleContext.start();
  }
View Full Code Here


    log.info("=======================");
    log.info("initializing mule");
    log.info("=======================");
    DefaultMuleContextFactory muleContextFactory = new DefaultMuleContextFactory();
    SpringXmlConfigurationBuilder configBuilder = new SpringXmlConfigurationBuilder("mule-config.xml");
    muleContext = muleContextFactory.createMuleContext(configBuilder);
    log.info("=======================");
    log.info("starting mule context");
    log.info("=======================");
    muleContext.start();
View Full Code Here

     *             running in this JVM or if the builder fails to configure the
     *             Manager
     */
    public MuleClient(String configResources) throws MuleException
    {
        this(configResources, new SpringXmlConfigurationBuilder(configResources));
    }
View Full Code Here

    {
        if (builder == null)
        {
            logger.info("Builder passed in was null, using default builder: "
                        + SpringXmlConfigurationBuilder.class.getName());
            builder = new SpringXmlConfigurationBuilder(configResources);
        }
        logger.info("Initializing Mule...");
        muleContext = muleContextFactory.createMuleContext(builder);
    }
View Full Code Here

{

    @Test(expected = ConfigurationException.class)
    public void expectFailure() throws Exception
    {
        ConfigurationBuilder configBuilder = new SpringXmlConfigurationBuilder("integration/config/bean-datasource-with-connection-properties-config.xml");
        configBuilder.configure(muleContext);
    }
View Full Code Here

            String resources = configFile.substring(configFile.lastIndexOf("/") + 1);
            resources = String.format("integration/%s/connector-%s",
                getJmsConfig().getName(), resources);
           
            String[] configFiles = new String[] { resources, configFile };
            SpringXmlConfigurationBuilder builder = new SpringXmlConfigurationBuilder(configFiles);
            return builder;
        }
        else
        {
            return super.getBuilder();
View Full Code Here

    private void loadConfiguration(String configuration) throws MuleException, InterruptedException
    {
        MuleContextFactory muleContextFactory = new DefaultMuleContextFactory();
        List<ConfigurationBuilder> builders = new ArrayList<ConfigurationBuilder>();
        builders.add(new SpringXmlConfigurationBuilder(configuration));
        MuleContextBuilder contextBuilder = new DefaultMuleContextBuilder();
        MuleContext muleContext = muleContextFactory.createMuleContext(builders, contextBuilder);
        final AtomicReference<Latch> contextStartedLatch = new AtomicReference<Latch>();
        contextStartedLatch.set(new Latch());
        muleContext.registerListener(new MuleContextNotificationListener<MuleContextNotification>()
View Full Code Here

    }

    @Override
    public ConfigurationBuilder getBuilder() throws ConfigurationException
    {
        return new SpringXmlConfigurationBuilder(getConfigFiles());
    }
View Full Code Here

    protected abstract String getConfigResources();

    @Override
    protected ConfigurationBuilder getBuilder() throws Exception
    {
        return new SpringXmlConfigurationBuilder(getConfigResources());
    }
View Full Code Here

    private MuleContext muleContext;

    @Test
    public void testDefaultJavaComponentShortcut() throws Exception
    {
        ConfigurationBuilder configBuilder = new SpringXmlConfigurationBuilder(
            "org/mule/config/spring/parsers/specific/component-ok-test-service.xml");
        muleContext = muleContextFactory.createMuleContext(configBuilder);
        Service service = muleContext.getRegistry().lookupService("service1");
        validateCorrectServiceCreation(service);
        assertEquals(DefaultJavaComponent.class, service.getComponent().getClass());
View Full Code Here

TOP

Related Classes of org.mule.config.spring.SpringXmlConfigurationBuilder

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.