Examples of HandleFault


Examples of org.apache.camel.processor.interceptor.HandleFault

        if (isHandleFault()) {
            // only add a new handle fault if not already configured
            if (HandleFault.getHandleFault(this) == null) {
                log.info("HandleFault is enabled on CamelContext: " + getName());
                addInterceptStrategy(new HandleFault());
            }
        }

        if (getDelayer() != null && getDelayer() > 0) {
            // only add a new delayer if not already configured
View Full Code Here

Examples of org.apache.camel.processor.interceptor.HandleFault

            }
            LOG.info("Using custom Tracer: " + tracer);
            getContext().addInterceptStrategy(tracer);
        }

        HandleFault handleFault = getBeanForType(HandleFault.class);
        if (handleFault != null) {
            LOG.info("Using custom HandleFault: " + handleFault);
            getContext().addInterceptStrategy(handleFault);
        }
View Full Code Here

Examples of org.apache.camel.processor.interceptor.HandleFault

    @Override
    protected RouteBuilder createRouteBuilder() throws Exception {
        return new RouteBuilder() {
            @Override
            public void configure() {
                getContext().addInterceptStrategy(new HandleFault());

                from("direct:start").to("mock:a").to("mock:b");
            }
        };
    }
View Full Code Here

Examples of org.apache.camel.processor.interceptor.HandleFault

    protected RouteBuilder createRouteBuilder() {

        return new RouteBuilder() {
            public void configure() {
                onException(Exception.class).handled(true).to("mock:exception");
                intercept().addInterceptStrategy(new HandleFault());

                from("direct:start").process(new Processor() {

                    public void process(Exchange exchange) throws Exception {
                        String message = exchange.getIn().getBody(String.class);
View Full Code Here

Examples of org.apache.camel.processor.interceptor.HandleFault

    @Override
    protected RouteBuilder createRouteBuilder() throws Exception {
        return new RouteBuilder() {
            @Override
            public void configure() {
                getContext().addInterceptStrategy(new HandleFault());

                errorHandler(
                    deadLetterChannel("mock:error")
                        .maximumRedeliveries(4)
                        .loggingLevel(LoggingLevel.DEBUG));
View Full Code Here

Examples of org.apache.camel.processor.interceptor.HandleFault

        if (isHandleFaultEnabled()) {
            // only add a new handle fault if not already configured
            if (HandleFault.getHandleFault(this) == null) {
                LOG.debug("HandleFault is enabled");
                addInterceptStrategy(new HandleFault());
            }
        }

        try {
            lifecycleStrategy.onContextStart(this);
View Full Code Here

Examples of org.apache.camel.processor.interceptor.HandleFault

        if (isHandleFault()) {
            // only add a new handle fault if not already configured
            if (HandleFault.getHandleFault(this) == null) {
                log.info("HandleFault is enabled on CamelContext: " + getName());
                addInterceptStrategy(new HandleFault());
            }
        }

        if (getDelayer() != null && getDelayer() > 0) {
            // only add a new delayer if not already configured
View Full Code Here

Examples of org.apache.camel.processor.interceptor.HandleFault

        if (isHandleFault()) {
            // only add a new handle fault if not already configured
            if (HandleFault.getHandleFault(this) == null) {
                log.info("HandleFault is enabled on CamelContext: " + getName());
                addInterceptStrategy(new HandleFault());
            }
        }

        if (getDelayer() != null && getDelayer() > 0) {
            // only add a new delayer if not already configured
View Full Code Here

Examples of org.apache.camel.processor.interceptor.HandleFault

                if (log.isDebugEnabled()) {
                    log.debug("HandleFault is enabled on route: " + this);
                }
                // only add a new handle fault if not already a global configured on camel context
                if (HandleFault.getHandleFault(getCamelContext()) == null) {
                    addInterceptStrategy(new HandleFault());
                }
            }
        }

        // configure delayer
View Full Code Here

Examples of org.apache.camel.processor.interceptor.HandleFault

    protected RouteBuilder createRouteBuilder() {

        return new RouteBuilder() {
            public void configure() {
                onException(Exception.class).handled(true).to("mock:exception");
                intercept().addInterceptStrategy(new HandleFault());

                from("direct:start").process(new Processor() {

                    public void process(Exchange exchange) throws Exception {
                        String message = exchange.getIn().getBody(String.class);
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.