activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <james.strac...@gmail.com>
Subject Re: Creating simple producer and consumer
Date Fri, 04 May 2007 12:36:28 GMT
On 5/4/07, Bai Shen <nabble@cyrrin.com> 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/

Mime
View raw message