added unsubscribe to flow handler

This commit is contained in:
David Turanski
2012-02-22 15:02:18 -05:00
parent 06ef00c709
commit a513a2b389

View File

@@ -91,7 +91,9 @@ public class FlowMessageHandler extends AbstractReplyProducingMessageHandler {
ResponseMessageHandler responseMessageHandler = new ResponseMessageHandler(conversationId);
flowOutputChannel.subscribe(responseMessageHandler);
flowInputChannel.send(message, timeout);
flowInputChannel.send(message, timeout);
flowOutputChannel.unsubscribe(responseMessageHandler);
return responseMessageHandler.getResponse();
}