Skip to content

Add support to StreamBridge to send to a binding rather then destination #3152

@olegz

Description

@olegz

In the following configuration the message will go straight to consume-in-0 because input is bound to testQueue and hence to consume-in-0. which is confusing. . .

StreamBridge bridge = context.getBean(StreamBridge.class);
bridge.send("input", "foo");

spring.cloud.stream.bindings.consume-in-0.destination=testQueue
spring.cloud.stream.bindings.consume-in-0.group=myGroup

spring.cloud.stream.function.bindings.uppercase|concat-out-0=input
spring.cloud.stream.bindings.input.destination=testQueue

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions