You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Jonasty <jo...@gmail.com> on 2015/03/24 15:57:34 UTC
Apache camel monitor activemq
How do I do that?
--
View this message in context: http://camel.465427.n5.nabble.com/Apache-camel-monitor-activemq-tp5764703.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Apache camel monitor activemq
Posted by James Carman <ja...@carmanconsulting.com>.
We have a bit more context from this request from the ActiveMQ mailing
list (double posted) and elsewhere on this list. As far as I can
tell, they are merely trying to "monitor" (meaning log to a database)
all messages coming out of one queue. That's why I asked if the
consumer is a camel route already. If so, merely doing wiretap is a
quick and easy way to achieve what they were looking to do. If they
are looking for a more comprehensive monitoring and statistics
approach, then no way would you want to inject that into all your
camel routes using the wiretap DSL. But, if it's for one particular
queue and one particular route, sure.
On Wed, Mar 25, 2015 at 3:41 PM, Greg Autric <ga...@redhat.com> wrote:
> Hi, James,
>
> Using wiretap is an anti-pattern 'cause you have to change your camel route to inject the wiretap component.
> Monitoring and statistic management should be outside of the camel route.
> The intercept process will "copy" the message if and only if this message is consume via the JMS component.
>
>
> Greg AUTRIC
> JBoss Middleware Consultant
>
> email : gautric __at__ redhat __dot__ com
> twitter : @gautric_io
>
> ----- Mail original -----
> De: "James Carman" <ja...@carmanconsulting.com>
> À: users@camel.apache.org
> Envoyé: Mercredi 25 Mars 2015 17:51:57
> Objet: Re: Apache camel monitor activemq
>
> Is it a Camel route that's consuming the messages eventually? If so,
> you can "wiretap" the messages off and log them if you want.
>
> http://camel.apache.org/wire-tap.html
Re: Apache camel monitor activemq
Posted by Greg Autric <ga...@redhat.com>.
Hi, James,
Using wiretap is an anti-pattern 'cause you have to change your camel route to inject the wiretap component.
Monitoring and statistic management should be outside of the camel route.
The intercept process will "copy" the message if and only if this message is consume via the JMS component.
Greg AUTRIC
JBoss Middleware Consultant
email : gautric __at__ redhat __dot__ com
twitter : @gautric_io
----- Mail original -----
De: "James Carman" <ja...@carmanconsulting.com>
À: users@camel.apache.org
Envoyé: Mercredi 25 Mars 2015 17:51:57
Objet: Re: Apache camel monitor activemq
Is it a Camel route that's consuming the messages eventually? If so,
you can "wiretap" the messages off and log them if you want.
http://camel.apache.org/wire-tap.html
Re: Apache camel monitor activemq
Posted by James Carman <ja...@carmanconsulting.com>.
Is it a Camel route that's consuming the messages eventually? If so,
you can "wiretap" the messages off and log them if you want.
http://camel.apache.org/wire-tap.html
Re: Apache camel monitor activemq
Posted by Greg Autric <ga...@redhat.com>.
Hi Jonasty,
You can intercept all incomming message via :
http://camel.apache.org/intercept.html
You can trace camel route via
http://camel.apache.org/tracer.html
Last but not least, you can connect via JMX to route statistics bean to retrieve some counter.
The hawtio program can help you for real time stats.
ActiveMQ is coming also via some statistic features.
http://activemq.apache.org/how-can-i-monitor-activemq.html
some good post :
http://blog.christianposta.com/activemq/hawtio-activemq/
http://bushorn.com/monitoring-camel-application/
Greg AUTRIC
JBoss Middleware Consultant
email : gautric __at__ redhat __dot__ com
twitter : @gautric_io
Red Hat Global Services
Red Hat France SARL sit: http://www.redhat.fr
Le Linea, 1 rue du General Leclerc, 92047 Paris La Défense Cedex
Sent from webmail
----- Mail original -----
De: "Jonasty" <jo...@gmail.com>
À: users@camel.apache.org
Envoyé: Mardi 24 Mars 2015 15:57:34
Objet: Apache camel monitor activemq
How do I do that?
--
View this message in context: http://camel.465427.n5.nabble.com/Apache-camel-monitor-activemq-tp5764703.html
Sent from the Camel - Users mailing list archive at Nabble.com.