INT-2086: JMS TemporaryTopic when replyPubSub

Fixes https://jira.spring.io/browse/INT-2086

Some JMS vendors handle differently a `TemporaryTopic` and `TemporaryQueue`,
so, change a `JmsOutboundGateway` to create respective temporary destination
according the `replyPubSubDomain` option set
This commit is contained in:
Artem Bilan
2022-10-07 17:11:12 -04:00
committed by Gary Russell
parent a30dc10447
commit f4d7c4f5d3
4 changed files with 16 additions and 4 deletions

View File

@@ -399,6 +399,7 @@ public class JmsTests extends ActiveMQMultiContextTests {
public IntegrationFlow jmsOutboundGatewayFlow() {
return f -> f.handle(Jms.outboundGateway(connectionFactory)
.replyContainer(c -> c.idleReplyContainerTimeout(10))
.replyPubSubDomain(true)
.requestDestination("jmsPipelineTest"),
e -> e.id("jmsOutboundGateway"));
}