Amol Nayak opened INT-2573 and commented
Currently the JPA outbound gateway does accept the max-number-of-results attribute but doesn't use it in the parser where as the inbound channel adapters doesn't support this attribute. This is required in cases where the user query fetches a large number of records and wants to restrict the number of records fetched at the database level.
Affects: 2.2 M1
This issue is a sub-task of #6565