You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Willem Jiang (JIRA)" <ji...@apache.org> on 2012/08/08 05:17:09 UTC
[jira] [Commented] (CAMEL-5489) Support for selection of direct-vm
consumers
[ https://issues.apache.org/jira/browse/CAMEL-5489?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13430830#comment-13430830 ]
Willem Jiang commented on CAMEL-5489:
-------------------------------------
Applied the patch with thanks to Sergey.
> Support for selection of direct-vm consumers
> --------------------------------------------
>
> Key: CAMEL-5489
> URL: https://issues.apache.org/jira/browse/CAMEL-5489
> Project: Camel
> Issue Type: Improvement
> Components: camel-core
> Affects Versions: 2.10.0
> Reporter: Sergey Zhemzhitsky
> Assignee: Willem Jiang
> Attachments: CAMEL-5489.patch
>
>
> It may be useful to support ant-like path expression when sending exchanges
> to multiple direct-vm consumers.
> {code}
> protected RouteBuilder createRouteBuilder() throws Exception {
> return new RouteBuilder() {
> @Override
> public void configure() throws Exception {
> from("direct:start")
> .recipientList(new DirectVmConsumerExpression("direct-vm://parent/**/context*"));
> }
> };
> }
> private RouteBuilder createRouteBuilderCamelContext2() {
> return new RouteBuilder() {
> @Override
> public void configure() throws Exception {
> from("direct-vm:parent/child/context2")
> .to("mock:result2");
> }
> };
> }
> private RouteBuilder createRouteBuilderCamelContext3() {
> return new RouteBuilder() {
> @Override
> public void configure() throws Exception {
> from("direct-vm:parent/child/grandchild/context3")
> .to("mock:result3");
> }
> };
> }
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira