Announcement Announcement Module
No announcement yet.
DirectChannel as ReplyChannel Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • DirectChannel as ReplyChannel

    From the ChangeLog I got the impression that I can use any type of channel in a replyChannel:

    GatewayProxyFactoryBean now supports non-pollable replyChannel
    But running my tests I got:

    Initialization of bean failed; nested exception is org.springframework.beans.TypeMismatchException: Failed to convert property value of type [ nel] to required type [ annel] for property 'defaultReplyChannel'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [ nel] to required type [ annel] for property 'defaultReplyChannel': no matching editors or conversion strategy found
    What am I missing?


  • #2
    That reply channel has to be a PollableChannel in the current implementation, because it is used by the no-arg methods to do: channel.receive() (without any sending first - and therefore no request/reply correlation).


    • #3
      I modified this so that the defaultReplyChannel does not have to be PollableChannel. If it is not, however, and the no-arg receive methods are called, an IllegalStateException will be thrown (they cannot receive from a non-PollableChannel).