• Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem of createDurableSubscriber() or DeliveryMode.PERSISTENT  RSS feed

 
Raj Kumar Bindal
Ranch Hand
Posts: 418
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If the 3rd client uses durable subscription the message will be delivered to it when it comes up provided that the message has not expired.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!