Hi,

One of our clients are publishing messages on a Websphere MQ server to a certain topic.

I need to subscribe to these messages using Spring/JMS.

I've successfully published messages to a queue in Websphere MQ using Spring, then consuming these from Spring again, but when it comes to creating a subscriber I am struggling.

I've changed my connection factory from a com.ibm.mq.jms.MQTopicConnectionFactory to a com.ibm.mq.jms.MQQueueConnectionFactory, then set pubSubDomain=true on both the SingleConnectionFactory as well as the JmsTemplate.

In Websphere MQ Explorer I see the subscriber listed while the client is running, but even though I specify the topic name as destination for the jmsTemplate.send method it does not seem to know which topic to subscribe to.

Can anyone point me in the right direction with this?