RE: Durable consumers

"Jim Alateras" <[email protected]>
Newsgroups gmane.comp.java.openjms.devel
Message-ID <[email protected]>
Hi,

  Currently I was using SonicMQ. In that if there is any durable consumer
for a Topic, it was not necessary that messages should be persistent.
SonicMQ itself sees, if there is any durable consumers for a Topic, it
stores the messages until it delievers the messages to all of its durable
consumers.

  But in OpenJMS , durable consumers of a Topic receives messages only if
messages sent on that Topic are persistent. Is it OK, or I am doing
something wrong.

  [jima] you should also be able to send persistent and non-persistent
messages to duirable consumers. You can test it by doing the following

  1. runconsumer.bat -topic topic1 -name sub1
  2. runpublisher.bat -topic topic1 -count 1
  3. runpublisher.bat -topic topic1 -count 1 -persistent

  In the consumer window you should see

  [1 of 0] JMSDeliveryMode=NON_PERSISTENT, Priority=3,
JMSMessageID=ID:6532260848592745480
  [2 of 0] JMSDeliveryMode=PERSISTENT, Priority=0,
JMSMessageID=ID:P7292479881129131912
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.