activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From SledgeHammer <>
Subject Re: Purge policy not working?
Date Fri, 05 Apr 2013 18:14:50 GMT
ceposta wrote
> What version are you using?
> How are you seeing that messages are not purged? When the connection goes
> away, the temp destination should go away as well.

I am using 5.8.0 latest. I clear everything out and I have 0 messages and 0
consumers. I run the producer and it generates 1000 messages. Web console
shows 1000 messages / 0 consumers. I then kill the producer. The 1000
messages never go away. If I start up a client, it gets the messages, but
since the replyto address is invalid,  I get the

I'm doing something like:

IDestination destination = SessionUtil.GetDestination(session,
ITemporaryQueue queue = session.CreateTemporaryQueue();

using (IMessageProducer producer = session.CreateProducer(destination))

	for (int i = 0; i < 1000; i++)
		ITextMessage msg = session.CreateTextMessage("Hello World!" + i);
		msg.NMSReplyTo = queue;
		msg.NMSCorrelationID = Guid.NewGuid().ToString();
		System.Diagnostics.Debug.WriteLine("SEND " + i);

thats my producer code. If I kill this process the temp queue "queue"
becomes invalid as it should. But messages that have that queue in the
NMSReplyTo address are never deleted.

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

View raw message