• 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:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Durable Subscriber Problem

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
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 (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.
 
Sheriff
Posts: 9109
12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Premkumar Mudaliar:
The server being used is Oracle9iAS (1.0.2.2.1).



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.
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
Mark
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic