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

Bai Shen wrote:

Bai Shen wrote:

James.Strachan wrote:
Try looking at the queues & consumers in the broker
http://activemq.apache.org/how-can-i-monitor-activemq.html

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


I can see the topic in the console and the Enqueue Count shows my
messages.  But I can't seem to receive them for some reason.


Okay, I ended up changing from a Topic to a Queue and was able to send and
receive my messages asynch.  However, I still don't quite understand the
durable part.  I've read
http://activemq.apache.org/how-do-durable-queues-and-topics-work.html but
AFAIK, the PERSISTANT flag is 'sposed to be already on.  I even set it, and
I still wasn't able to get things to work.

Reply via email to