You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Claus Ibsen <cl...@gmail.com> on 2015/01/17 07:50:03 UTC

Re: Camel Hawtio route diagram

Hi

If you use JMX then there is a operation on the camel context mbean to
dump routes as xml. That is what hawtio uses to show the graphical
display.

Also often a screenshot helps shows what you say.

And what Camel endpoints are you using with Akka? And what version of
Camel and Akka are you using?

On Fri, Jan 16, 2015 at 6:10 PM, aidatechinc <HF...@aidatech.com> wrote:
>
> I am dynamically creating a route using akka actors.  So I have a consumer
> actor and a producer actor which received message from the consumer actor.
>
> When I look at the route in Hawtio,  I see the consumer is routing back to
> the consumer, but the route is working fine.  Any ideas?
>
> Your time is appreciated.
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Camel-Hawtio-route-diagram-tp5761803.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
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: Camel Hawtio route diagram

Posted by Claus Ibsen <cl...@gmail.com>.
Hi

I dont see a hawtio issue here, its a valid Camel route with a from ->
convertBody -> to.
akka is just a Camel component from Camel point of view.

About your #2 question then that is more an Akka question than Camel.
I suggest to ask the Akka community about that


On Sun, Jan 18, 2015 at 5:31 AM, aidatechinc <HF...@aidatech.com> wrote:
> Hello,
>
> I am using camel 2.14.1 with akka 2.3.6.  I have attached the xml the hawtio
> is showing for a quick file consumer to a file producer.  basically moving
> files
>
> <route xmlns="http://camel.apache.org/schema/spring"
> id="akka://Main/user/s3_1421555118018">
>         <from uri="file:///opt/xyz/atg?delete=true"/>
>         <convertBodyTo type="java.io.InputStream"/>
>         <to
> uri="akka://Main/user/s3_1421555118018?autoAck=true&amp;replyTimeout=60000
> milliseconds"/>
>     </route>
>
>
> As you can see the producer, doesn't show me that is a file component, but
> rather an akka actor.
>
> 1) is this a correct way to approach it?
> 2) or should I have once actor that spin up a routeBuilder?
>
> The ideas is I want to dynamically created routes and have akka cluster take
> care of the route and executed across different nodes.  Provided they all
> have different consumer points.
>
> thank again
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Camel-Hawtio-route-diagram-tp5761803p5761835.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
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: Camel Hawtio route diagram

Posted by aidatechinc <HF...@AIDATECH.COM>.
Thanks Guys! You gave me some ideas to try  



--
View this message in context: http://camel.465427.n5.nabble.com/Camel-Hawtio-route-diagram-tp5761803p5761928.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Camel Hawtio route diagram

Posted by Jakub Korab <ja...@gmail.com>.
Hi,

If you want to get the route to show you something else in the route id
of the XML, you can set it manually. E.g. using the Java DSL:

from("file://opt.../atg").routeId("file_consumer_atg")...

Jakub

On 18/01/15 04:31, aidatechinc wrote:
> Hello,
>
> I am using camel 2.14.1 with akka 2.3.6.  I have attached the xml the hawtio
> is showing for a quick file consumer to a file producer.  basically moving
> files
>
> <route xmlns="http://camel.apache.org/schema/spring"
> id="akka://Main/user/s3_1421555118018">
>         <from uri="file:///opt/xyz/atg?delete=true"/>
>         <convertBodyTo type="java.io.InputStream"/>
>         <to
> uri="akka://Main/user/s3_1421555118018?autoAck=true&amp;replyTimeout=60000
> milliseconds"/>
>     </route>
>
>
> As you can see the producer, doesn't show me that is a file component, but
> rather an akka actor.  
>
> 1) is this a correct way to approach it?  
> 2) or should I have once actor that spin up a routeBuilder?
>
> The ideas is I want to dynamically created routes and have akka cluster take
> care of the route and executed across different nodes.  Provided they all
> have different consumer points.
>
> thank again
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Camel-Hawtio-route-diagram-tp5761803p5761835.html
> Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Camel Hawtio route diagram

Posted by aidatechinc <HF...@AIDATECH.COM>.
Hello,

I am using camel 2.14.1 with akka 2.3.6.  I have attached the xml the hawtio
is showing for a quick file consumer to a file producer.  basically moving
files

<route xmlns="http://camel.apache.org/schema/spring"
id="akka://Main/user/s3_1421555118018">
        <from uri="file:///opt/xyz/atg?delete=true"/>
        <convertBodyTo type="java.io.InputStream"/>
        <to
uri="akka://Main/user/s3_1421555118018?autoAck=true&amp;replyTimeout=60000
milliseconds"/>
    </route>


As you can see the producer, doesn't show me that is a file component, but
rather an akka actor.  

1) is this a correct way to approach it?  
2) or should I have once actor that spin up a routeBuilder?

The ideas is I want to dynamically created routes and have akka cluster take
care of the route and executed across different nodes.  Provided they all
have different consumer points.

thank again



--
View this message in context: http://camel.465427.n5.nabble.com/Camel-Hawtio-route-diagram-tp5761803p5761835.html
Sent from the Camel - Users mailing list archive at Nabble.com.