Document max-rows-per-poll for the JDBC Gateway

StackOverflow https://stackoverflow.com/questions/45611037
This commit is contained in:
Artem Bilan
2017-08-10 16:52:44 -04:00
parent a3160f80f6
commit 4fd32d2bd4
2 changed files with 9 additions and 7 deletions

View File

@@ -274,6 +274,12 @@ The reply message is then generated from the result, like the inbound adapter, a
data-source="dataSource"/>
----
[IMPORTANT]
=====
By default the component for the SELECT query returns only one, first row from the cursor.
This can be adjusted with the `max-rows-per-poll` option.
Consider to specify `max-rows-per-poll="0"` if you need to return all the rows from the SELECT.
As with the channel adapters, there is also the option to provide `SqlParameterSourceFactory` instances for request and reply.
The default is the same as for the outbound adapter, so the request message is available as the root of an expression.
If `keys-generated="true"` then the root of the expression is the generated keys (a map if there is only one or a list of maps if multi-valued).