camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Raul Kripalani (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CAMEL-6648) Create a Fluent ProducerTemplate
Date Fri, 16 Aug 2013 17:30:48 GMT

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

Raul Kripalani updated CAMEL-6648:
----------------------------------

    Description: 
Create a Fluent ProducerTemplate so that users can use it in the following manner:
\\
\\
{code}
// initialize ProducerTemplate with a default endpoint
FluentProducerTemplate template = new FluentProducerTemplate("activemq:queue:foo"); 
MyResponse response = 
    template.newExchange().toDefaultEndpoint()
            .withBody("this is slick")
            .withHeader("MyHeader1", "HeaderValue")
            .withHeader("MyHeader2", "HeaderValue2")
            .resultAs(MyResponse.class)
            .dispatchInOut();                 // or inOnly(), asyncInOut()
{code}
 

  was:
Create a Fluent ProducerTemplate so that users can use it in the following manner:

{code}
// initialize ProducerTemplate with a default endpoint
FluentProducerTemplate template = new FluentProducerTemplate("activemq:queue:foo"); 
MyResponse response = 
    template.newExchange().toDefaultEndpoint()
            .withBody("this is slick")
            .withHeader("MyHeader1", "HeaderValue")
            .withHeader("MyHeader1", "HeaderValue")
            .resultAs(MyResponse.class)
            .dispatchInOut();                 // or inOnly(), asyncInOut()
{code}
 

    
> Create a Fluent ProducerTemplate
> --------------------------------
>
>                 Key: CAMEL-6648
>                 URL: https://issues.apache.org/jira/browse/CAMEL-6648
>             Project: Camel
>          Issue Type: New Feature
>          Components: camel-core
>            Reporter: Raul Kripalani
>            Assignee: Raul Kripalani
>
> Create a Fluent ProducerTemplate so that users can use it in the following manner:
> \\
> \\
> {code}
> // initialize ProducerTemplate with a default endpoint
> FluentProducerTemplate template = new FluentProducerTemplate("activemq:queue:foo"); 
> MyResponse response = 
>     template.newExchange().toDefaultEndpoint()
>             .withBody("this is slick")
>             .withHeader("MyHeader1", "HeaderValue")
>             .withHeader("MyHeader2", "HeaderValue2")
>             .resultAs(MyResponse.class)
>             .dispatchInOut();                 // or inOnly(), asyncInOut()
> {code}
>  

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message