org.mule.api.MuleException Java Examples
The following examples show how to use
org.mule.api.MuleException.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: MuleContextInitializer.java From mule-spring-boot-starter with Apache License 2.0 | 6 votes |
private void startMuleContext(ApplicationContext parent) { if (muleContext == null) { DefaultMuleContextFactory muleContextFactory = new DefaultMuleContextFactory(); try { SpringXmlConfigurationBuilder configBuilder = new SpringXmlConfigurationBuilder(config); StaticApplicationContext staticApplicationContext = new StaticApplicationContext(parent); staticApplicationContext.refresh(); configBuilder.setParentContext(staticApplicationContext); muleContext = muleContextFactory.createMuleContext(configBuilder); muleContext.start(); } catch (MuleException e) { throw new RuntimeException(e); } } }