spring-projects / spring-integration

Spring Integration provides an extension of the Spring programming model to support the well-known Enterprise Integration Patterns (EIP)
http://projects.spring.io/spring-integration/
Apache License 2.0
1.54k stars 1.1k forks source link

MarshallingWebServiceInboundGateway won't subscribe to an explicitly defined 'reply-channel' [INT-1302] #5307

Closed spring-operator closed 14 years ago

spring-operator commented 14 years ago

Dhanushyantha Hettiarachchi opened INT-1302 and commented

Problem when using a WS inbound gateway and a JMS outbound gateway with a transformer with the reply msg.

Getting an exception "Dispatcher has no subscribers". Here is what i want to do. I have a web service that i expose. I want to have the WS inbound gateway get the requests and I use a Payload router to route the messages. There are multiple service activators down stream which consumes the routed msg. This all works fine. For one particular request i want to use a JMS outbound gateway to post the request as a JMS message to a external system using a request queue and get the response through JMS using a response queue. I do transformations before i send to the JMS outbound gateway and after. I put the returned reply from the JMS outbound gateway to the reply channel i setup with the WS inbound gateway.

More information at http://forum.springsource.org/showthread.php?t=92935


Affects: 2.0 M5

Reference URL: http://forum.springsource.org/showthread.php?t=92935

spring-operator commented 14 years ago

Oleg Zhurakousky commented

This issue is actually related to the #5234 and #5230 which was fixed for M6. Waiting for confirmation from the reporter if it is still a bug. During local testing I was able to reproduce the issue on M5, but not on M6.

spring-operator commented 14 years ago

Oleg Zhurakousky commented

I was able to reproduce the issue with MarshallingWebServiceInboundGateway. It was not registering its delegate as a subscriber to the 'reply-channel'

spring-operator commented 14 years ago

Oleg Zhurakousky commented

MarshallingWebServiceInboundGateway now implements SmartLifecycle