Win a copy of Spring Boot in Practice this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

JMS publish and subscribe

 
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Q 1) please give me the right reason why in jms the message Publish rate is much lower than the message recieve rate by subscriber
Q 2) for persistance messageing and durable subscription I understand that if jms provider server is running then
if i run publisher and wait until all the message is publish and then run subscriber then the subscriber must get message.
but I can't get the same result i.e if publisher and subscriber both are running then the message is passed but if any one is not running then the message is lost
 
author
Posts: 3892
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I personally can't make sense out of either of these questions. Can you give us more context, or try rephrasing them?
Kyle
 
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I could get either of the questions.
Following may help
Usually A alient that subscribes
to a topic can consume only messages published after the client has created a subscription, and the subscriber must continue to be active in order for it to consume messages.
But u have Durable subscriptions that can receive messages
sent while the subscribers are not active. Durable subscriptions provide the
flexibility and reliability of queues but still allow clients to send messages to many recipients.
TopicSession.createSubscriber method creates a nondurable sub-scriber.
you can use the TopicSession.createDurableSubscriber method to create a durable subscriber.
Hope this helps......
 
Anand Sidharth
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
oops I am sorry
forgive me for being fat-fingered
actually the essential was missing "I COULDN'T understand both the quetion that were asked"
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic