You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by ivan <iv...@dhousestudio.com> on 2008/10/21 12:14:33 UTC
AMQ and messages
Hi!
I have AMQ and consumer of some queue. From third-party, some provider
writes JMS messages to queue.
When consumer is off, JMS messages accumulate in AMQ.
Next, for some reason, I shutdown AMQ.
Now I start system (AMQ and consumer), and consumer reads old messages
from AMQ.
I want to delete accumulated messages in AMQ after restarting. The one
possible way is to delete /data folder. But is there exist other way,
for example, via configuring aсtivemq.xml?
Thanks in advance!
Truly yours,
Ivan Pryvalov.
activemq.xml BrokerService.setDeleteAllMessagesOnStartup()
Posted by Minh Tu Duong <mi...@maas.de>.
Hi,
someone know how to configure the activemq.xml so that the
/_BrokerService.setDeleteAllMessagesOnStartup(true) <http://activemq.apache.org/maven/activemq-core/apidocs/src-html/org/apache/activemq/broker/BrokerService.html#line.1030>_/ is called at startup.
cheers.
Minh Tu.
Re: activemq.xml BrokerService.setDeleteAllMessagesOnStartup()
Posted by Joe Fernandez <jo...@ttmsolutions.com>.
In the <broker> element, for example
<broker xmlns="http://activemq.apache.org/schema/core"
brokerName="localhost" dataDirectory="${activemq.base}/data"
deleteAllMessagesOnStartup="true">
...
</broker>
Joe
http://www.ttmsolutions.com - get a free ActiveMQ user guide
Minh Tu Duong wrote:
>
> Hi,
>
> someone know how to configure the activemq.xml so that the
>
> /_BrokerService.setDeleteAllMessagesOnStartup(true)
> <http://activemq.apache.org/maven/activemq-core/apidocs/src-html/org/apache/activemq/broker/BrokerService.html#line.1030>_/
> is called at startup.
>
>
> cheers.
> Minh Tu.
>
>
>
>
--
View this message in context: http://www.nabble.com/AMQ-and-messages-tp20087281p20092852.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
activemq.xml BrokerService.setDeleteAllMessagesOnStartup()
Posted by Minh Tu Duong <mi...@maas.de>.
Hi,
someone know how to configure the activemq.xml so that the
/_BrokerService.setDeleteAllMessagesOnStartup(true) <http://activemq.apache.org/maven/activemq-core/apidocs/src-html/org/apache/activemq/broker/BrokerService.html#line.1030>_/ is called at startup.
cheers.
Minh Tu.
Re: AMQ and messages
Posted by Joe Fernandez <jo...@ttmsolutions.com>.
There is the 'deleteAllMessagesOnStartup' option, but this option is meant
for testing purposes.
http://activemq.apache.org/broker-uri.html
Joe
http://www.ttmsolutions.com - get a free ActiveMQ user guide
ivan-50 wrote:
>
> Hi!
>
> I have AMQ and consumer of some queue. From third-party, some provider
> writes JMS messages to queue.
>
> When consumer is off, JMS messages accumulate in AMQ.
> Next, for some reason, I shutdown AMQ.
>
> Now I start system (AMQ and consumer), and consumer reads old messages
> from AMQ.
>
> I want to delete accumulated messages in AMQ after restarting. The one
> possible way is to delete /data folder. But is there exist other way,
> for example, via configuring aсtivemq.xml?
>
>
> Thanks in advance!
> Truly yours,
> Ivan Pryvalov.
>
>
--
View this message in context: http://www.nabble.com/AMQ-and-messages-tp20087281p20087670.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: AMQ and messages
Posted by James Strachan <ja...@gmail.com>.
2008/10/21 ivan <iv...@dhousestudio.com>:
> Hi!
>
> I have AMQ and consumer of some queue. From third-party, some provider
> writes JMS messages to queue.
>
> When consumer is off, JMS messages accumulate in AMQ.
> Next, for some reason, I shutdown AMQ.
>
> Now I start system (AMQ and consumer), and consumer reads old messages from
> AMQ.
>
> I want to delete accumulated messages in AMQ after restarting. The one
> possible way is to delete /data folder. But is there exist other way, for
> example, via configuring aсtivemq.xml?
See http://activemq.apache.org/how-do-i-purge-a-queue.html
http://activemq.apache.org/web-console.html
--
James
-------
http://macstrac.blogspot.com/
Open Source Integration
http://fusesource.com/