Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Subscribing to a JMS Topic

 
Naveen Sampra
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
When I call createSubscription("topicName") method of my TopicSession object; it creates a TopicSubscriber for me without a problem.
But I need the subscriber to be persistent and receive all messages, even ones when subscriber was inactive. So I need to create a durable subscription.
In order to achieve this, when I call,
createDurableSubscription("topicName", "uniqueName") method of my TopicSession object I get the following error message:
MQJMS2008: failed to open MQ queue
I am using WebSphere MQ 5.3 as my MQ server.
My guess is that I am missing some internal queue.
Anyone knows what it is or any extra configuration needed for durable subscriptions?
~Naveen
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you seen this thread?
 
Naveen Sampra
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Yes. I did see that thread, but the problem is different in my case. Thanks for the link anyway.
The discussion in the thread is about the error occurring randomly after creating a subscriber and then trying to consume messages using that subscriber.
In my case I can't create a subscriber in the first place. To be more specific, I can't create a durable subscriber. I CAN create a normal subscriber without errors.
I think I must be missing some configuration objects/queues in the MQ server. Can anyone who has worked with creating durable subscribers in WebSphere MQ server help me ?
~Naveen
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maybe you should ask the folks hanging at our WebSphere forum.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic