Claus Ibsen created CAMEL-9602:
----------------------------------
Summary: ProducerTemplateBuilder
Key: CAMEL-9602
URL: https://issues.apache.org/jira/browse/CAMEL-9602
Project: Camel
Issue Type: New Feature
Components: camel-core
Reporter: Claus Ibsen
Fix For: Future
Would be nice with a fluent builder style for producer template, (not an
extension) but similar as producer template.
So you use the builder methods to build the command.
{code}
ProducerTemplateBuilder builder = ...
String reply = builder.withBody("Hello World").withHeader("foo",
123).withHeader("bar", 456).to("jms:queue:foo").request(String.class);
{code}
or something like that.
The current ProducerTemplate has an overload of methods that work with high and
low level (eg Exchange, Processor vs strings).
Would be nice with a simpler api that use a more modern fluent style, but
donesn't have a ton of methods - but can do the 95% need.
There is an ExchangeBuilder but its only for building an Exchange and its a bit
too low level.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)