You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Luca Burgazzoli (JIRA)" <ji...@apache.org> on 2016/04/27 10:19:13 UTC

[jira] [Resolved] (CAMEL-9602) ProducerTemplateBuilder

     [ https://issues.apache.org/jira/browse/CAMEL-9602?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Luca Burgazzoli resolved CAMEL-9602.
------------------------------------
       Resolution: Fixed
    Fix Version/s:     (was: Future)
                   2.18.0

> 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
>            Assignee: Luca Burgazzoli
>             Fix For: 2.18.0
>
>
> 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)