aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes Subscribing to a JMS Topic Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Subscribing to a JMS Topic" Watch "Subscribing to a JMS Topic" New topic
Author

Subscribing to a JMS Topic

Naveen Sampra
Ranch Hand

Joined: Jun 11, 2003
Posts: 70
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

Joined: Jan 23, 2002
Posts: 11962
    
    5
Have you seen this thread?


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Naveen Sampra
Ranch Hand

Joined: Jun 11, 2003
Posts: 70
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

Joined: Jan 23, 2002
Posts: 11962
    
    5
Maybe you should ask the folks hanging at our WebSphere forum.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Subscribing to a JMS Topic