activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gmelasecca <>
Subject RE: Daily Message Count - HELP
Date Mon, 07 Mar 2016 19:33:00 GMT
This is great. I am using this in my dev environment successfully. The only question or issue
I have is the below error I get in the logs when im using the query string below you provided.
I changed the query to remove the "&replyTo=queue:stats.destination" pattern="InOnly".
And activemq starts and logs the stats. Can you assist and explain why it doesn't like that
replyTo query string? I tried to google the error and look at ActiveMQ forum but didn't explain

<!--  Destination statistics
            <to uri="activemq://queue:ActiveMQ.Statistics.Destination?preserveMessageQos=true&replyTo=queue:stats.destination"
            <to uri="activemq://queue:ActiveMQ.Statistics.Destination?preserveMessageQos=true"
<route id="destination-stats-logger">
<from uri="activemq://queue://stats.destination"/>
<log message="Destination Statistics for ${body[destinationName]} : ${body}"/>

<route id="destination-stats-trigger">
<from uri="timer://camel-destination-stats-timer?period=5000"/>
<log message="Sending Destination Statistics request"/>
<to uri="activemq://queue:ActiveMQ.Statistics.Destination?preserveMessageQos=true&replyTo=queue://stats.destination"
<log message="Destination Statistics Request sent"/>

2016-03-07 14:46:53,385 | INFO  | Refreshing org.apache.activemq.xbean.XBeanBrokerFactory$1@393a82f5:
startup date [Mon Mar 07 14:46:53 EST 2016]; root of context hierarchy | org.apache.activemq.xbean.XBeanBrokerFactory$1
| WrapperSimpleAppMain
2016-03-07 14:46:54,587 | ERROR | Failed to load: class path resource [activemq.xml], reason:
Line 54 in XML document from class path resource [camel.xml] is invalid; nested exception
is org.xml.sax.SAXParseException; lineNumber: 54; columnNumber: 90; The reference to entity
"replyTo" must end with the ';' delimiter. | org.apache.activemq.xbean.XBeanBrokerFactory
| WrapperSimpleAppMain
org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 54 in XML document
from class path resource [camel.xml] is invalid; nested exception is org.xml.sax.SAXParseException;
lineNumber: 54; columnNumber: 90; The reference to entity "replyTo" must end with the ';'
            at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(
            at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(
            at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(
            at org.apache.xbean.spring.context.v2.XBeanBeanDefinitionDocumentReader.importBeanDefinitionResource(
            at org.apache.xbean.spring.context.v2.XBeanBeanDefinitionDocumentReader.parseDefaultElement(
            at org.apache.xbean.spring.context.v2.XBeanBeanDefinitionDocumentReader.parseBeanDefinitions(
            at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(

Greg Melasecca
Analyst - IS Shared Services
1.610.612.5782 (work)
1.302.250.2519 (cell)

From: hqstevenson [via ActiveMQ] []
Sent: Monday, February 29, 2016 2:49 PM
To: Melasecca, Gregory <>
Subject: Re: Daily Message Count - HELP

I don't know if you still need this, but I put together a small XML sample that will log all
destination statistics every 5 seconds.

You'll probably want to mess with the pattern for the destination names and the timer for
the destination statistics.  There's also a Camel route that is commented out that will log
the broker statistics.


You can put this file in the $ACTIVEMQ_HOME/conf directory and then add an import into the

<import resource="camel-stats.xml"/>
If you reply to this email, your message will be added to the discussion below:
To unsubscribe from Daily Message Count - HELP, click here<>.
This e-mail and any attachments may contain information which is confidential, proprietary,
privileged or otherwise protected by law. The information is solely intended for the named
addressee (or a person responsible for delivering it to the addressee). If you are not the
intended recipient of this message, you are not authorized to read, print, retain, copy or
disseminate this message or any part of it. If you have received this e-mail in error, please
notify the sender immediately by return e-mail and delete it from your computer.

image001.png (11K) <>

View this message in context:
Sent from the ActiveMQ - User mailing list archive at
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message