activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jeffrey <>
Subject expireMessagesPeriod for activemq broker
Date Wed, 24 Sep 2014 21:50:22 GMT
In our activemq.xml file, simplified a little bit:

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns=""
ema/core" xmlns:xsi=""
xsi:schemaLocation="http://www.sprin     http://">
  <bean id="logQuery" class="org.fusesource.insight.log.log4j.Log4jLogQuery"
lazy-init="false" scope
="singleton" init-method="start" destroy-method="stop">
  <broker xmlns=""
brokerName="testname" dataDirectory="${}">
      <managementContext createConnector="false"/>
      <kahaDB directory="${}/kahadb"/>
          <memoryUsage percentOfJvmHeap="70"/>
          <storeUsage limit="1 gb"/>
          <tempUsage limit="500 mb"/>
      <sslContext keyStore="/etc/BROKER.jks" keyStorePassword="xxx"
trustStore="/etc/BROKERTRUST.jks" trustStorePassword="xxx"/>
      <transportConnector name="ssl"
      <bean xmlns=""
      <jaasCertificateAuthenticationPlugin configuration="CertLogin"/>
              <authorizationEntry topic="ActiveMQ.Advisory.&gt;" read="*"
write="*" admin="*"/>
              <authorizationEntry queue="events" reader="read"
admin="writer" write="writer"/>
          <policyEntry queue="events" expireMessagesPeriod="10000"/>

At the bottom, we have this expireMessagesPeriod, which I assume should be
in milliseconds, I cannot find this properly stated anywhere.
But I am writing to this queue, and if no one receives the message within 10
seconds, I am expecting it to expire and be deleted from the broker.  This
functionality does not seem to be working at all, even reducing the time to
1 has no effect.  When the receiver program reconnects, it receives all the
messages that should have expired.

Is there something I am missing in the xml to enable this feature, or
something I could be doing in my sending client to cause this?  I am using
ActiveMQ 5.9, both Java and C++ APIs. But in this scenario I am sending with
Java and receiving with C++.


View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message