INT-2264, INT-2263 TCP GW Reconcile reply-timeout

reply-timeout had the wrong function, when compared to
other gateways.

Add remote-timeout to reflect the time we will wait
for a reply from the remote system

Make reply-timeout set the sendTimeout on the messaging template

Set remore-timeout to reply-timeout (if set) unless remote-timeout
is explicitly set.

Update reference doc, and migration guide on Wiki.
This commit is contained in:
Gary Russell
2012-06-05 09:58:16 -04:00
parent 44e033a844
commit 9f3e8aab4a
8 changed files with 96 additions and 22 deletions

View File

@@ -627,7 +627,7 @@
reply-channel="replyChannel"
connection-factory="cfClient"
request-timeout="10000"
reply-timeout="10000"
remote-timeout="10000"
/>]]></programlisting>
A simple outbound TCP gateway.
</para>
@@ -1669,10 +1669,11 @@
</entry>
</row>
<row>
<entry>reply-timeout</entry>
<entry>remote-timeout</entry>
<entry></entry>
<entry>The time in milliseconds for which the gateway will wait for a reply.
Default: 10000 (10 seconds).</entry>
<entry>The time in milliseconds for which the gateway will wait for a reply from the
remote system.
Default: Same value as reply-timeout, if specified, or 10000 (10 seconds) otherwise.</entry>
</row>
<row>
<entry>request-timeout</entry>
@@ -1680,6 +1681,13 @@
<entry>If a single-use connection factory is not being used, The time in milliseconds
for which the gateway will wait to get access to the shared connection.</entry>
</row>
<row>
<entry>reply-timeout</entry>
<entry></entry>
<entry>The time in milliseconds for which the gateway will wait when sending the reply
to the reply-channel. Only applies if the reply-channel might block, such as a
bounded QueueChannel that is currently full.</entry>
</row>
</tbody>
</tgroup>
</table>