On 24/09/2007, dantelope <[EMAIL PROTECTED]> wrote:
>
> The following test produces unexpected results:
>
> 1) Start a broker with a statically defined destination topic called
> VirtualTopic.FOO
> 2) Start a consumer listening to Consumer.A.VirtualTopic.FOO
> 3) Start a sender and send N messages to VirtualTopic.FOO
> 4) Consumer correctly receives N messages.
> 5) Kill the consumer process
> 6) Stop the broker
> 7) Start the broker
> 8) Start a sender and send N messages to VirtualTopic.FOO
> 9) Start a consumer listening to Consumer.A.VirtualTopic.FOO
>
> FAIL: the consumer does not receive N messages as expected.
>
> If I put messages on the topic before stopping the server, then the consumer
> WILL receive the messages on start up.
>
> Is this my misunderstanding of how Virtual Topics should work, or is this a
> defect I should report?

Are you sending the messages using persistent mode?
http://activemq.apache.org/what-is-the-difference-between-persistent-and-non-persistent-delivery.html

If not then its expected behaviour.

Note that to re-enable the consumer each time you need to start the
consumer on startup of the broker or add the
Consumer.A.VirtualTopic.FOO queue to the startup destinations.

http://activemq.apache.org/configure-startup-destinations.html
-- 
James
-------
http://macstrac.blogspot.com/

Open Source SOA
http://open.iona.com

Reply via email to