I'm using Spring JMS and Web Sphere Default Messaging Provider for my Messaging Needs. I have created a Topic and connection factory on WAS.
I am able to send message to Topic using JMSTemplate
from my publisher.
But Whenever I call JmsTemplate.receive()
in my Subscriber , it goes into waiting state and I am not able to receive message in my Subscriber.
However I am able to receive message in Subscriber using JmsTemplate
if a use a Listener as Subscriber or if a start a new thread whenever I am publishing message using my Publisher.
Looking for help !