Help me in JMS

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gsuns82
    New Member
    • Mar 2007
    • 58

    Help me in JMS

    Hi all,
    I am using Jms TopicPublisher and TopicSubscriber inorder to
    process multiple requests.

    summary of the requirement:
    *************** *************** ***
    1.TopicPublishe r.java it posts a message to Topic which will be read
    by the TopicSubscriber through a Listener.

    2.TopicSubscrib er.java as stated it reads the message from topic,performs
    my business logic using published message.

    3.Multiple messages can be published using TopicPublisher. java,these messages are handled asynchronously by the TopicSubscriber .java

    My problem is how to terminate the TopicPublisher. java after
    publisher.publi sh(topic, message); line,it still running after publish.

    I tried by giving publisher.close (); but no use.
    can any one of u help me out regarding this???

    am i doing it in a right way?(i.e) using TopicPublisher, TopicSubscriber
    so as to handle multiple requests in asynchronous way,or is it possible to
    use queues instead of topic,which one is effective???

    Thanks In Advance!

    sundar.
  • Dököll
    Recognized Expert Top Contributor
    • Nov 2006
    • 2379

    #2
    Let's have a look of your code, and we can give you an idea...

    Hope you're still looking for this;-)

    Comment

    Working...