camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: n00b routing question
Date Mon, 22 Jun 2015 20:26:17 GMT
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 <Jason.Pratt@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/

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message