• Post Reply Bookmark Topic Watch Topic
  • New Topic

JMS Topic subcriber .

 
Tirthankar Dutta Chaudhuri
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,
when implementing a queue receiver and a topic receiver i find a diffrence . When i use queueReceiver.receive() for a queue i get all the messages which have been put in queue.
But when i do the same thing in a topic subscriber.receive().
i dont get the messages which had been earlier unless i create a durable subscriber .
Can any one tell me the reason .

Thanks ,
Tirthankar
 
Jaikiran Pai
Sheriff
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As per the JMS specs:
Non-durable subscriptions last for the lifetime of their subscriber object. This means that a client will only see the messages published on a topic while its subscriber is active. If the subscriber is not active, it is missing messages published on its topic.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!