Details
-
New Feature
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
2.6.0
-
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
- duplicates
-
CAMEL-3104 ExchangeBuilder to create messages using fluent builder style
- Resolved