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

James Strachan commented on CAMEL-1171:
---------------------------------------

:) it was my duff suggestion to use it the other way around to start with :)

Just about done - gonna commit this minor change shortly.

BTW made another minor change - the ToType now can take an ExchangePattern 
constructor argument as well - so that when sending to an endpoint (the common 
use case for the inOut/inOnly methods), we don't need 2 steps in the route

> add from(....).inOnly("....") or from("...").inOut("....") to allow explicit 
> ExchangePatterns to be specified in the routing DSL
> --------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-1171
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1171
>             Project: Apache Camel
>          Issue Type: New Feature
>          Components: camel-core
>            Reporter: James Strachan
>            Assignee: James Strachan
>             Fix For: 1.5.1, 2.0.0
>
>
> Right now the *to* will use the current default pattern that an endpoint 
> prefers. It would be good to allow it to be explicitly specified in the route.
> Not 100% sure the best names to use - is *inOnly()* and *inOut()* the best? 
> Maybe *oneway()* and *request()*?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to