This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes Durable Subscriber Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Durable Subscriber Problem" Watch "Durable Subscriber Problem" New topic
Author

Durable Subscriber Problem

Premkumar Mudaliar
Greenhorn

Joined: Jul 30, 2003
Posts: 3
Hi,
I hava a durable subscriber program which is not able to receive any messages asynchronously. A new topic connection factory was defined in the jms.xml which was used instead of the default one. The server being used is Oracle9iAS (1.0.2.2.1). Following is the code for durable subscriber.
topicConnection = topicConnectionFactory.createTopicConnection();
topicConnection.setClientID("101");
topicSession = topicConnection.createTopicSession(false, Session.AUTO_ACKNOWLEDGE);
topicSubscriber = topicSession.createDurableSubscriber(topic, "SUB1");
topicConnection.stop();
topicListener = new TextListener();
topicSubscriber.setMessageListener(topicListener);
topicConnection.start();
This works fine if the subscriber is active while the publisher sent the messages but when the subscriber program is stopped and publisher is made to send the message, after restarting the subscriber program, no messages are received. Is something wrong with the code or with the orion server itself. I also tried executing the DurableSubscriberExample program given in the JMS tutorial but that also didnt work. Please let me know the solution.
 
 
subject: Durable Subscriber Problem
 
Similar Threads
question about durable JMS subscription.
implementing a thread safe Publish/subscribe mechanism
Doubt in JMS pub/sub model
Durable Subscriber Problem
MDB Durable subscription