Package org.apache.camel

Examples of org.apache.camel.CamelContext.startRoute()


            }
            System.err.println("Camel route " + route + " not found.");
            return null;
        } else {
            CamelContext camelContext = camelRoute.getRouteContext().getCamelContext();
            camelContext.startRoute(route);
        }
        return null;
    }

}
View Full Code Here


            }
            System.err.println("Camel route " + route + " not found.");
            return null;
        } else {
            CamelContext camelContext = camelRoute.getRouteContext().getCamelContext();
            camelContext.startRoute(route);
        }
        return null;
    }

}
View Full Code Here

        CamelContext context = exchange.getContext();
        try {
            context.getInflightRepository().remove(exchange);
            context.stopRoute(stop);
            context.startRoute(start);
        } catch (Exception e) {
            // let the exception handle handle it, which is often just to log it
            getExceptionHandler().handleException("Error flipping routes", e);
        }
    }
View Full Code Here

        // add the new merged route
        context.getRouteDefinitions().add(0, merged);

        // and start it
        context.startRoute(merged);
        return merged;
    }

    // Fluent API
    // -----------------------------------------------------------------------
View Full Code Here

        CamelContext context = exchange.getContext();
        try {
            context.getInflightRepository().remove(exchange);
            context.stopRoute(stop);
            context.startRoute(start);
        } catch (Exception e) {
            // let the exception handle handle it, which is often just to log it
            getExceptionHandler().handleException("Error flipping routes", e);
        }
    }
View Full Code Here

        // add the new merged route
        context.getRouteDefinitions().add(0, merged);

        // and start it
        context.startRoute(merged);
        return merged;
    }

    // Fluent API
    // -----------------------------------------------------------------------
View Full Code Here

        if (camelRoute == null) {
            System.err.println("Camel route " + route + " not found.");
            return null;
        }
        CamelContext camelContext = camelRoute.getRouteContext().getCamelContext();
        camelContext.startRoute(route);
        return null;
    }

}
View Full Code Here

            System.err.println("Camel routes using " + route + " not found.");
            return null;
        }
        for (Route camelRoute : camelRoutes) {
            CamelContext camelContext = camelRoute.getRouteContext().getCamelContext();
            camelContext.startRoute(camelRoute.getId());
        }

        return null;
    }
View Full Code Here

        CamelContext context = exchange.getContext();
        try {
            context.getInflightRepository().remove(exchange);
            context.stopRoute(stop);
            context.startRoute(start);
        } catch (Exception e) {
            // let the exception handle handle it, which is often just to log it
            getExceptionHandler().handleException("Error flipping routes", e);
        }
    }
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.