Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-3752

ExchangeBuilder

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 2.6.0
    • 3.0.0
    • camel-core
    • None

    Description

      We should add an ExchangeBuilder so you can use the builder pattern to create an Exchange and set message body, headers etc.

      Something along the lines like this. Maybe there is a shorter and nicer API to do it:

      Exchange exchange = ExchangeBuilder(context).withBody("Hello World).andHeader("foo", 123).build("activemq:queue:foo");
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              davsclaus Claus Ibsen
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: