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.
-- 
View this message in context: 
http://www.nabble.com/Creating-simple-producer-and-consumer-tf3683279s2354.html#a10321741
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to