[
https://issues.apache.org/activemq/browse/CAMEL-1181?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=48052#action_48052
]
Willem Jiang commented on CAMEL-1181:
-------------------------------------
Here is DSL code example
{code}
from("direct:inOnly").inOut().to("mock:result");
from("direct:inOut").setExchangePattern(ExchangePattern.InOnly).to("mock:result");
from("direct:inOut1").to("mock:result",
ExchangePattern.RobustInOnly);
from("direct:inOut2").inOnly("mock:result");
{code}
Here is the Spring configuration
{code}
<camelContext id="camel"
xmlns="http://activemq.apache.org/camel/schema/spring">
<route>
<from uri="direct:inOnly"/>
<setExchangePattern pattern="InOut"/>
<to uri="mock:result"/>
</route>
<route>
<from uri="direct:inOut"/>
<setExchangePattern pattern="InOnly"/>
<to uri="mock:result"/>
</route>
<route>
<from uri="direct:inOut1"/>
<to uri="mock:result" pattern="RobustInOnly"/>
</route>
<route>
<from uri="direct:inOut2"/>
<inOnly uri="mock:result"/>
</route>
</camelContext>
{code}
> Add test case and document to this new feature
> ----------------------------------------------
>
> Key: CAMEL-1181
> URL: https://issues.apache.org/activemq/browse/CAMEL-1181
> Project: Apache Camel
> Issue Type: Sub-task
> Reporter: Willem Jiang
> Assignee: Willem Jiang
> Fix For: 2.0.0
>
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.