Hi experts,
I am developing a JMS topic subscriber MessageListener using Spring 2.5 framework running on WebLogic 10.3. The broker is v 6.5.
The issue I’m having is that I can’t get the durable subscriber feature to work. When I start multiple clients against the same server, each client gets every messages rather than having them distributed round-robin.
Any ideas on the fix? Unfortunately I don’t have access to the Broker, but I can ask the administrator any questions if there is anything specific that would help.
My Spring configuration is:
<bean id="jmsListenerTopicConnectionFactory"
class="com.webmethods.jms.WmJMSFactory" factory-method="getTopicConnectionFactory">
<property name="brokerHost" value="MyHost" />
<property name="brokerName" value="MyBrokerName" />
<property name="clientGroup" value="MyClientGroup" />
</bean>
<bean id="SubscriptionTopic"
class="com.webmethods.jms.WmJMSFactory" factory-method="getTopic">
<property name="name" value="MyTopicName" />
<property name="sharedState" value="true" />
<property name="sharedStateOrdering" value="0" />
</bean>
<bean id="h2hListener" class="com.jpmorgan.tss.pnet.service.integration.impl.BatchControlMessageListener" />
<bean id="h2hContainer"
class="org.springframework.jms.listener.DefaultMessageListenerContainer">
<property name="connectionFactory" ref="jmsListenerTopicConnectionFactory" />
<property name="destination" ref="SubscriptionTopic" />
<property name="messageListener" ref="h2hListener" />
<property name="sessionTransacted" value="true" />
<property name="subscriptionDurable" value="true" />
<property name="clientId" value="myClientId}" />
<property name="pubSubDomain">
<value>true</value>
</property>
</bean>