Announcement Announcement Module
Collapse
No announcement yet.
jms:outbound-gateway not consuming the response Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • jms:outbound-gateway not consuming the response

    Hi,
    I am using SI 1.0.4 with Spring 3.0.4. 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; however the message never gets consumed. From the logs, I can see that a MessageConsumer was created for the reply-destination specified. The application eventually timesout after default 5000ms.
    Here's my configuration -
    Code:
    	<integration:channel id="requestChannel" />
    	<integration:channel id="responseChannel" />
    
    	<integration:gateway id="pRequestGateway"
    		default-request-channel="requestChannel" service-interface="com.message.IRequestGateway" />
    	<integration:gateway id="pResponseGateway"
    		default-reply-channel="responseChannel" service-interface="com.message.IResponseGateway" />
    
    	<jms:outbound-gateway id="calcOutboundGateway"
    		request-channel="requestChannel" request-destination="calcRequestTopic"
    		connection-factory="cachingConnectionFactory" reply-destination="calcResponseQueue" reply-channel="responseChannel"/>
    
    
    	<bean id="calcRequestTopic" class="com.tibco.tibjms.TibjmsTopic">
    		<constructor-arg value="${com.calc.request.topic}" />
    	</bean>
    
    	<bean id="calcResponseQueue" class="com.tibco.tibjms.TibjmsQueue">
    		<constructor-arg value="${com.calc.response.queue}" />
    	</bean>
    My client code is -
    Code:
    		this.requestGateway.sendMessage(message);
    		final String response = this.responseGateway.receiveMessage();
    Any pointers would be of great help.

    Thanks,
    Dwipin Chandran.
Working...
X