public void start() throws MuleException { muleContext.start(); }
public MuleContext startMule(MuleContext context) throws MuleException { context.start(); startPlugins(); return context; }
/** * Overloaded the [main] thread run method. This calls initialise and shuts down * if an exception occurs */ public void run() { try { logger.info("Mule Server initializing..."); initialize(); logger.info("Mule Server starting..."); muleContext.start(); } catch (Throwable e) { shutdown(e); } }
muleContext.start();
this.muleContext.start();
/** * Initialises a default {@link MuleContext} for use by the client. * * @param startManager start the Mule context if it has not yet been initialised * @throws MuleException */ private void init(boolean startManager) throws MuleException { if (muleContext == null) { logger.info("No existing ManagementContext found, creating a new Mule instance"); MuleContextBuilder contextBuilder = new DefaultMuleContextBuilder(); DefaultMuleConfiguration config = new DefaultMuleConfiguration(); config.setClientMode(true); contextBuilder.setMuleConfiguration(config); muleContext = muleContextFactory.createMuleContext(contextBuilder); } else { logger.info("Using existing MuleContext: " + muleContext); } if (!muleContext.isStarted() && startManager == true) { logger.info("Starting Mule..."); muleContext.start(); } }
this.muleContext.start();
protected void doStart() { log.info("Starting Mule"); DefaultMuleContextFactory muleContextFactory = new DefaultMuleContextFactory(); try { muleContext = muleContextFactory.createMuleContext(); muleContext.start(); // Make single shared instance of mule context // available to DeployableMuleXmlContextListener to support // hot-deployment of Mule configurations in web applications. DeployableMuleXmlContextListener.setMuleContext(muleContext); } catch (Exception e) { log.error("Failed to start Mule", e); } }
muleContext.start();