[ 
https://issues.apache.org/jira/browse/CAMEL-9602?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15173722#comment-15173722
 ] 

ASF GitHub Bot commented on CAMEL-9602:
---------------------------------------

GitHub user lburgazzoli opened a pull request:

    https://github.com/apache/camel/pull/876

    CAMEL-9602 - ProducerTemplateBuilder

    This is a first cut of a ProducerTemplateBuilder which covers some basic 
cases.
    It does not support exchange, processor and exchange patter.
    
    Any feedback would be appreciated.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/lburgazzoli/apache-camel CAMEL-9602

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/camel/pull/876.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #876
    
----
commit 5d1576c752a74d3ec93de339518438d89370878a
Author: lburgazzoli <[email protected]>
Date:   2016-03-01T13:00:59Z

    CAMEL-9602 - ProducerTemplateBuilder

----


> 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: 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)

Reply via email to