You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by gng <ga...@hp.com> on 2010/05/26 16:56:42 UTC

Which configuration option ?

I'd like to delete all queues and topics (and all messages in them) when I
restart ActiveMQ. In other words, I'd like to have an empty state.

Can anyone suggest a config parameter to do this and where it should be
placed ?

Thanks !
-- 
View this message in context: http://old.nabble.com/Which-configuration-option---tp28681939p28681939.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: Which configuration option ?

Posted by Joe Fernandez <jo...@ttmsolutions.com>.
Try 'deleteAllMessagesOnStartup'.

http://activemq.apache.org/broker-uri.html

Joe
ActiveMQ Ref Guide - http://bit.ly/AMQRefGuide



gng wrote:
> 
> I'd like to delete all queues and topics (and all messages in them) when I
> restart ActiveMQ. In other words, I'd like to have an empty state.
> 
> Can anyone suggest a config parameter to do this and where it should be
> placed ?
> 
> Thanks !
> 

-- 
View this message in context: http://old.nabble.com/Which-configuration-option---tp28681939p28682119.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: Which configuration option ?

Posted by James Casey <ja...@gmail.com>.
Hi Gareth,

you use the attribute deleteAllMesagesOnStartup="true" on the broker
element: <http://activemq.apache.org/broker-uri.html>

cheers,

James.

On 26 May 2010 16:56, gng <ga...@hp.com> wrote:
>
> I'd like to delete all queues and topics (and all messages in them) when I
> restart ActiveMQ. In other words, I'd like to have an empty state.
>
> Can anyone suggest a config parameter to do this and where it should be
> placed ?
>
> Thanks !
> --
> View this message in context: http://old.nabble.com/Which-configuration-option---tp28681939p28681939.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
>