Announcement Announcement Module
Collapse
No announcement yet.
jms:outbound-gateway giving "Dispatcher has no subscribers" Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • jms:outbound-gateway giving "Dispatcher has no subscribers"

    Hi,
    I am using SI 2.0.5 with Spring 3.0.6. I have a outbound-gateway configured to achieve a request-response mode of operation. The sending of request goes thru fine, I get a response on the reply-destination; the message gets present on the reply-channel. But then I get an error saying "Dispatcher has no subscribers". This is my configuration -
    Code:
    	<bean id="queueCachingConnectionFactory"
    		class="org.springframework.jms.connection.CachingConnectionFactory">
    		<property name="targetConnectionFactory">
    			<bean class="com.tibco.tibjms.TibjmsQueueConnectionFactory">
    				<property name="serverUrl" value="${com.jms.serverurl}" />
    				<property name="userName" value="${com.jms.username}" />
    				<property name="userPassword" value="${com.jms.password}" />
    			</bean>
    		</property>
    		<property name="sessionCacheSize" value="${com.ms.sessionCacheSize}" />
    		<property name="cacheProducers" value="${com.jms.cacheProducers}" />
    	</bean>
    
    	<bean id="syncMessageService" class="com.message.SyncMessageService"/>
    	<integration:channel id="requestChannel" />
    	<integration:channel id="responseChannel" />
    
    	<integration:gateway id="dbpRequestGateway"
    		default-request-channel="requestChannel" service-interface="com.message.IRequestGateway"
    		 />
    	
    	<si-jms:outbound-gateway id="calcOutboundGateway"
    		request-channel="requestChannel" request-destination="calcRequestQueue"
    		connection-factory="queueCachingConnectionFactory" reply-destination="calcResponseQueue"
    		reply-channel="responseChannel" receive-timeout="5000"/>
    
    
    	<bean id="calcRequestQueue" class="com.tibco.tibjms.TibjmsQueue">
    		<constructor-arg value="${com.calc.request.queue}" />
    	</bean>
    
    	<bean id="calcResponseQueue" class="com.tibco.tibjms.TibjmsQueue">
    		<constructor-arg value="${com.calc.response.queue}" />
    	</bean>
    This is how I call -
    Code:
                this.requestGateway.sendMessage(message);
                final String response = this.responseGateway.receiveMessage();
    I get the error on the this.requestGateway.sendMessage(message); call.
    Any pointers here would be of great help.

    Thanks,
    Dwipin.

  • #2
    You have no subscribers to 'responseChannel'.

    If you want the response to go back to your gateway, remove

    Code:
    reply-channel="responseChannel"
    from your jms gateway (and remove the channel definition because it's not needed).

    Comment

    Working...
    X