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.
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.
Comment