Skip to content

expose setOutputChannel via interface on MessageHandlerChain and AbstractReplyProducingMessageHandler to allow for JDK proxy on MessageHandler [INT-975] #4985

Closed

Description

@spring-operator

tony kerz opened INT-975 and commented

currently applying a JDK proxy to MessageHandler causes MessageHandlerChain.configureChain()
to throw an exception because it is using PropertyAccessor/BeanWrapperImpl on the "outputChannel" property which fails on the proxy since setOutputChannel isn't exposed via interface.

i also have a use case where i am "manually" stitching together chains and service activators and i need proxy friendly access to set the output channel.

suggest something like:

public interface MessageProducer
{
public void setOutputChannel(MessageChannel outputChannel);
}


No further details from INT-975

Activity

  1. spring-operator commented on Mar 9, 2010

    @spring-operator
    ContributorAuthor

    Mark Fisher commented

    MessageHandler implementations that are capable of producing messages to be sent on an output channel now implement the MessageProducer interface.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions