INT-4519: Improve JMS inbound-c-a receiveTimeout (#2540)

* INT-4519: Improve JMS inbound-c-a receiveTimeout

JIRA: https://jira.spring.io/browse/INT-4519

* Modify `DynamicJmsTemplate` to default for `-1` if we get
`CachingConnectionFactory` and it is with `cacheConsumers`, otherwise
1 second
* Polishing for some JMS XML parsers, in particular remove
`receiveTimeout` population

**Cherry-pick to 5.0.x**

* * Polishing according PR comments

* * Properly use a `CachingConnectionFactory` in `JmsTests`
This commit is contained in:
Artem Bilan
2018-08-20 13:44:19 -04:00
committed by Gary Russell
parent 15eae700a3
commit 56ce348b2b
7 changed files with 164 additions and 118 deletions

View File

@@ -55,6 +55,8 @@ If instead you prefer to have the raw JMS Message as the Spring Integration Mess
</int-jms:inbound-channel-adapter>
----
Starting with version 5.0.8, a default value of the `receive-timeout` is `-1` (no wait) for the `org.springframework.jms.connection.CachingConnectionFactory` and `cacheConsumers`, otherwise it is 1 second.
[[jms-ib-transactions]]
==== Transactions