activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eugen Cristea <eugen.cris...@makonetworks.com>
Subject producer/consumer example
Date Wed, 05 Apr 2006 00:12:23 GMT


In the producer/consumer example included with the activemq 
download(ActiveMQ 4.0 M4 Release) i changed the transport from vm to 
tcp, set durable to true and:
1 start the broker
2 run "ant producer" - produces 10 messages
3 stop the broker
4 restart broker
5 run ant consumer - reads 10 messages
5 stop the broker
6 restart broker
7 run ant consumer - reads 9 messages
etc ...

It looks like only the last message is marked as delivered.

If the broker restarts are taken out(step 3, 4, 5 and 6) the consumer 
run at step 5 will consume 10 messages and at step 7 will wait until 
producer creates a message for the queue.(i will call this behaviour as 
normal)

Mime
View raw message