IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only

Using durable subscriber feature

  • 1.  Using durable subscriber feature

    Posted Wed April 07, 2010 02:46 PM

    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>

    #Broker-JMS
    #Integration-Server-and-ESB
    #webMethods
    #Universal-Messaging-Broker