Problem of createDurableSubscriber() or DeliveryMode.PERSISTENT

I am sending messages using topic and a selector.

But one problem:

Suppose i am sending messages to 3 persons through selector and only 2 are online at that time,so those 2 get the messages but third person when he becomes online does not get the message.

I am using:

publisher.publish(TextMessage,DeliveryMode.PERSISTENT,TextMessage.DEFAULT_PRIORITY,TextMessage.DEFAULT_TIME_TO_LIVE);

and also creating durable Subscriber.

Plz tell me the solution and if this is not correct what else can i do

so that the third person also gets the message.

[593 byte] By [chatservera] at [2007-10-2 21:03:42]
# 1

Hi,

If all your subscribers are durable, there is no problem with being online or not.

All subscribers will receive all messages that have being sent after they have subscribed.

If they are not online at the time of publish, they will get it when they connect later.

That's all you need to know !

If you do that and loose messages, then probably the JMS provider you use does not comply to JMS specification ...

Good luck.

Pierre-Yves Fourmond

Axway Messaging System

http://pyfourmond.free.fr

pyfourmond_xmsa at 2007-7-13 23:48:50 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...