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 f9fe709881
commit 0545a7b0ff
7 changed files with 165 additions and 119 deletions

View File

@@ -63,6 +63,8 @@ If you prefer to have the raw JMS message as the Spring Integration message's pa
----
====
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
@@ -513,7 +515,7 @@ The default is a `SimpleMessageConverter`.
Overridden by the message priority header, if present.
Its range is `0` to `9`.
This setting takes effect only if `explicit-qos-enabled` is `true`.
<11> The time (in millseconds) to wait for a reply.
<11> The time (in milliseconds) to wait for a reply.
The default is `5000` (five seconds).
<12> The channel to which the reply message is sent.
<13> A reference to a `Destination`, which is set as the `JMSReplyTo` header.