On 5/4/07, Bai Shen <[EMAIL PROTECTED]> wrote:



jlim wrote:
>
> For topics the consumer must be created first since messages are only
> delivered to the available consumers at the time the broker receives the
> message.
>
> For durable subscribers you can create a  durable subscriber, kill it,
> run the producer, then start the subscriber again.
>
> 
http://java.sun.com/j2ee/1.4/docs/api/javax/jms/Session.html#createDurableSubscriber(javax.jms.Topic,%20java.lang.String)
> http://activemq.apache.org/how-does-a-queue-compare-to-a-topic.html
>
> Regards,
> Jonas
>

How do you kill the consumer so that it stays subscribed?  Whenever I stop
my consumer program, it gets unsubscribed.

Durable subscriber information is stored in the broker for durable
topic subscriptions, so it can keep message the consumer misses while
its closed.


--
James
-------
http://macstrac.blogspot.com/

Reply via email to