0
votes

I need to use dynamic group names for RabbitMQ binder based Multisink (multiple sinks) app. Seems like the spring.cloud.stream.bindings..group property can't be set at runtime.

Any thoughts on how to go about it ? SPB: 2.2.8.RELEASE , spring-cloud-dependencies: Hoxton.SR6 , spring-cloud-stream-dependencies: Horsham.SR6

Thanx,

1

1 Answers

0
votes

You can use a property placeholder there...

spring.cloud.stream.bindings.input-in-0.group=${group.prop:foo}

...and then set the property on the command line:

-Dgroup.prop=bar