Expose MessageProducerSpec.role(String) option

Related to: https://stackoverflow.com/questions/78294542/role-in-integrationflow-dsl

(cherry picked from commit fd81adff27)
This commit is contained in:
Artem Bilan
2024-04-08 16:17:30 -04:00
committed by Spring Builds
parent 6c4f7c0822
commit a25b0a8691
2 changed files with 16 additions and 1 deletions

View File

@@ -522,6 +522,7 @@ public class JmsTests extends ActiveMQMultiContextTests {
public IntegrationFlow jmsMessageDrivenRedeliveryFlow() {
return IntegrationFlow
.from(Jms.messageDrivenChannelAdapter(amqFactory)
.role("someRole")
.errorChannel("errorChannelForRedelivery")
.destination("jmsMessageDrivenRedelivery")
.configureListenerContainer(c -> c