Giter VIP home page Giter VIP logo

Comments (5)

christophd avatar christophd commented on June 7, 2024

@davsclaus setting camel.component.kamelet.noErrorHandler=false would be an option but I think there is a better way when we set the error handler properly for the route, right? could you please advice how we should be adding the Pipe error handler so that it works as expected with Camel 4.4.0 🙏 many thanks

from camel-k.

davsclaus avatar davsclaus commented on June 7, 2024

Do you have a sample code for camel jbang that would be easier to look at

from camel-k.

christophd avatar christophd commented on June 7, 2024

I had a look into how Camel JBang handles the error handler on a Pipe and found this example here:

https://github.com/apache/camel/blob/main/dsl/camel-yaml-dsl/camel-yaml-dsl/src/test/groovy/org/apache/camel/dsl/yaml/PipeLoaderTest.groovy#L371

I guess this is the proper way to set the error handler factory on the routeDefinition to a DeadLetterChannelDefinition for instance. Then is also works with the noErrorHandler setting in Camel 4.4, right?

from camel-k.

davsclaus avatar davsclaus commented on June 7, 2024

Yes camel-yaml-dsl setup the pipe error handler on the route as a pure standard camel fashion.
https://github.com/apache/camel/blob/78bd6d70f5af6997d3b4a21085b1bbbde4e2cf70/dsl/camel-yaml-dsl/camel-yaml-dsl/src/main/java/org/apache/camel/dsl/yaml/YamlRoutesBuilderLoader.java#L828

from camel-k.

christophd avatar christophd commented on June 7, 2024

Relates to apache/camel#13489

from camel-k.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.