You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by vonezzz <34...@qq.com> on 2017/03/07 08:36:34 UTC
how to config two routes use the same endpoint?
i have endpoint A,B and C. need from A to B, from A to C.
i know use Filters or Filters can implement this.
but i hope to configure two difference routes, not one route.
because i need to implement from A to D , from A to E in the future, i want
to implement this dynamic.
--
View this message in context: http://camel.465427.n5.nabble.com/how-to-config-two-routes-use-the-same-endpoint-tp5794989.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: how to config two routes use the same endpoint?
Posted by Quinn Stevenson <qu...@pronoia-solutions.com>.
Could you define route A to send the message to an intermediary (vm endpoint, jms, seda) and then have the other routes consume from there?
> On Mar 8, 2017, at 4:54 AM, vonezzz <34...@qq.com> wrote:
>
> i want to use two routedefine,not one route.
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/how-to-config-two-routes-use-the-same-endpoint-tp5794989p5795076.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
Re: how to config two routes use the same endpoint?
Posted by vonezzz <34...@qq.com>.
i want to use two routedefine,not one route.
--
View this message in context: http://camel.465427.n5.nabble.com/how-to-config-two-routes-use-the-same-endpoint-tp5794989p5795076.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: how to config two routes use the same endpoint?
Posted by souciance <so...@gmail.com>.
I am not sure I follow but Camel has a toD() endpoint. You can dynamically
route to an endpoint using some value from a header or property. If you can
dynamically calculate where to route you can use toD() to accomplish this
for you. So you can write code to say A-->X where X is B, C , D ,E etc.
On Tue, Mar 7, 2017 at 9:36 AM, vonezzz [via Camel] <
ml-node+s465427n5794989h22@n5.nabble.com> wrote:
> i have endpoint A,B and C. need from A to B, from A to C.
> i know use Filters or Filters can implement this.
>
> but i hope to configure two difference routes, not one route.
>
> because i need to implement from A to D , from A to E in the future, i
> want to implement this dynamic.
>
>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
> http://camel.465427.n5.nabble.com/how-to-config-two-routes-
> use-the-same-endpoint-tp5794989.html
> To start a new topic under Camel - Users, email
> ml-node+s465427n465428h31@n5.nabble.com
> To unsubscribe from Camel - Users, click here
> <http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=465428&code=c291Y2lhbmNlLmVxZGFtLnJhc2h0aUBnbWFpbC5jb218NDY1NDI4fDE1MzI5MTE2NTY=>
> .
> NAML
> <http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>
--
View this message in context: http://camel.465427.n5.nabble.com/how-to-config-two-routes-use-the-same-endpoint-tp5794989p5794991.html
Sent from the Camel - Users mailing list archive at Nabble.com.