wood burning stoves
The moose likes Oracle/OAS and the fly likes Durable Subscriber Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Oracle/OAS
Bookmark "Durable Subscriber Problem" Watch "Durable Subscriber Problem" New topic

Durable Subscriber Problem

Premkumar Mudaliar

Joined: Jul 30, 2003
Posts: 3
I have 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 ( Following is the code for durable subscriber.
topicConnection = topicConnectionFactory.createTopicConnection();
topicSession = topicConnection.createTopicSession(false, Session.AUTO_ACKNOWLEDGE);
topicSubscriber = topicSession.createDurableSubscriber(topic, "SUB1");
topicListener = new TextListener();
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.
Marilyn de Queiroz

Joined: Jul 22, 2000
Posts: 9059
Originally posted by Premkumar Mudaliar:
The server being used is Oracle9iAS (

I'm not quite sure why this was posted in the Orion forum since it seems to be more related to JMS and Oracle.

Perhaps someone in the Oracle forum may be able to help. I'll move it there for you.

"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
Mark Spritzler

Joined: Feb 05, 2001
Posts: 17276

Premkumar. Hi.
We aren't sure whether you question is direcly related to Orion Server, or Oracle Server?
Please let us know which one it relates to so that it can be in the best forum to get you an answer.
Unfortunately I am not familiar with Durablility per say. I know it is a JMS issue. And I read about them in an EJB 2.0 book/specification for the scbcd, but the exam didn't need this information.
Good Luck.

Perfect World Programming, LLC - iOS Apps
How to Ask Questions the Smart Way FAQ
I agree. Here's the link: http://aspose.com/file-tools
subject: Durable Subscriber Problem
It's not a secret anymore!