Expose MessageProducerSpec.role(String) option

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

**Auto-cherry-pick to `6.2.x` & `6.1.x`**
This commit is contained in:
Artem Bilan
2024-04-08 16:17:30 -04:00
parent 43255b5e58
commit fd81adff27
2 changed files with 16 additions and 1 deletions

View File

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