camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAMEL-5301) Add exchangePattern option to recipientList
Date Tue, 11 Nov 2014 11:02:34 GMT

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

Claus Ibsen commented on CAMEL-5301:
------------------------------------

We could in fact allow the MEP to be set as part of the uri options, then its no DSL change,
and therefore easier to manage.

So from a InOnly route you can do
{code}
.recipientList("activemq:queue1?exchangePattern=InOut")
{code}
And then the MEP is preserved as InOnly in the original route. But the AMQ does an InOut MEP
style.


> Add exchangePattern option to recipientList
> -------------------------------------------
>
>                 Key: CAMEL-5301
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5301
>             Project: Camel
>          Issue Type: New Feature
>          Components: camel-core
>    Affects Versions: 2.10.0
>            Reporter: Raúl Kripalani
>             Fix For: Future
>
>
> Right now, the exchanges sent by the recipientList DSL absorb the exchange pattern that
was set on the exchange before it entered the recipientList. 
> We should add a capability to explicitly overwrite the exchange pattern for those exchanges
sent by the recipientList.
> Consider for example a route with a InOut CXF consumer wanting to broadcast a message
to a number of AMQ queues dynamically computed from a header. Right now, the exchanges will
be sent with an InOut pattern and there is no way to override this behaviour unless we use
onPrepareRef.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message