Package org.apache.camel.impl

Examples of org.apache.camel.impl.DefaultCamelContext.shutdown()


   
    // TODO: this is a temporary workaround until validation is provided by the JMX API - please replace after next Camel Release
    DefaultCamelContext ctx = new DefaultCamelContext();
    try {
      ctx.resolveLanguage(combo_language.getText().trim()).createPredicate(text_condition.getText().replaceAll("\n", "").replaceAll("\r", "").trim());
      ctx.shutdown();
    } catch (Exception ex) {
      if (!ex.getMessage().contains("No language could be found for:")) {
        setErrorMessage("Condition Error: " + ex.getMessage());
        if (getButton(OK) != null) getButton(OK).setEnabled(false);
        return false;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.