You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by "Pratt, Jason" <Ja...@windriver.com> on 2015/06/22 20:30:05 UTC
n00b routing question
Hello everyone - I am trying to get my routes to show up when I list them in the CLI. I can get the context to display 'myId', but not route1 or route2. What am I doing wrong?
<camelContext xmlns="http://camel.apache.org/schema/blueprint" id="myId">
<routeBuilder ref="myFirstRoute" name="route1" />
<routeBuilder ref="mySecondRoute" name="route2" />
</camelContext>
Regards,
Jason
Re: n00b routing question
Posted by Claus Ibsen <cl...@gmail.com>.
Ah use .routeId to set the route nane in Java code. You cannot use name
attribute in xml
Den mandag den 22. juni 2015 skrev Pratt, Jason <Ja...@windriver.com>:
> Hi claus - sorry mate.
> I am using 2.15.2 running in a karaf 3.0.3 container
>
> When I list the routes via camel:route-list I get a generic route number
> for both 1 and 2. Currently they are 33 and 34 respectively.
>
> Jason
>
> -----Original Message-----
> From: Claus Ibsen [mailto:claus.ibsen@gmail.com <javascript:;>]
> Sent: Monday, June 22, 2015 12:26 PM
> To: users@camel.apache.org <javascript:;>
> Subject: Re: n00b routing question
>
> Hi
>
> Can you tell a bit more about which Camel version. And what CLI do you
> use? And what command or what you do type.
>
> On Mon, Jun 22, 2015 at 8:30 PM, Pratt, Jason <Jason.Pratt@windriver.com
> <javascript:;>> wrote:
> > Hello everyone - I am trying to get my routes to show up when I list
> them in the CLI. I can get the context to display 'myId', but not route1 or
> route2. What am I doing wrong?
> >
> > <camelContext xmlns="http://camel.apache.org/schema/blueprint"
> > id="myId">
> >
> > <routeBuilder ref="myFirstRoute" name="route1" />
> >
> > <routeBuilder ref="mySecondRoute" name="route2" />
> >
> > </camelContext>
> >
> > Regards,
> > Jason
>
>
>
> --
> Claus Ibsen
> -----------------
> Red Hat, Inc.
> Email: cibsen@redhat.com <javascript:;>
> Twitter: davsclaus
> Blog: http://davsclaus.com
> Author of Camel in Action: http://www.manning.com/ibsen
> hawtio: http://hawt.io/
> fabric8: http://fabric8.io/
>
--
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
hawtio: http://hawt.io/
fabric8: http://fabric8.io/
RE: n00b routing question
Posted by "Pratt, Jason" <Ja...@windriver.com>.
Hi claus - sorry mate.
I am using 2.15.2 running in a karaf 3.0.3 container
When I list the routes via camel:route-list I get a generic route number for both 1 and 2. Currently they are 33 and 34 respectively.
Jason
-----Original Message-----
From: Claus Ibsen [mailto:claus.ibsen@gmail.com]
Sent: Monday, June 22, 2015 12:26 PM
To: users@camel.apache.org
Subject: Re: n00b routing question
Hi
Can you tell a bit more about which Camel version. And what CLI do you use? And what command or what you do type.
On Mon, Jun 22, 2015 at 8:30 PM, Pratt, Jason <Ja...@windriver.com> wrote:
> Hello everyone - I am trying to get my routes to show up when I list them in the CLI. I can get the context to display 'myId', but not route1 or route2. What am I doing wrong?
>
> <camelContext xmlns="http://camel.apache.org/schema/blueprint"
> id="myId">
>
> <routeBuilder ref="myFirstRoute" name="route1" />
>
> <routeBuilder ref="mySecondRoute" name="route2" />
>
> </camelContext>
>
> Regards,
> Jason
--
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
hawtio: http://hawt.io/
fabric8: http://fabric8.io/
Re: n00b routing question
Posted by Claus Ibsen <cl...@gmail.com>.
Hi
Can you tell a bit more about which Camel version. And what CLI do you
use? And what command or what you do type.
On Mon, Jun 22, 2015 at 8:30 PM, Pratt, Jason <Ja...@windriver.com> wrote:
> Hello everyone - I am trying to get my routes to show up when I list them in the CLI. I can get the context to display 'myId', but not route1 or route2. What am I doing wrong?
>
> <camelContext xmlns="http://camel.apache.org/schema/blueprint" id="myId">
>
> <routeBuilder ref="myFirstRoute" name="route1" />
>
> <routeBuilder ref="mySecondRoute" name="route2" />
>
> </camelContext>
>
> Regards,
> Jason
--
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
hawtio: http://hawt.io/
fabric8: http://fabric8.io/