Details
-
Improvement
-
Status: Resolved
-
P2
-
Resolution: Fixed
-
None
-
None
Description
When using JmsIO this way:
JmsIO.read().withConnectionFactory(connectionFactory).withQueue("queue")
the user expects to work in unbounded mode. However, as the maxNumRecords value is not set by default in JmsIO, the default value set is 0 (as it's a long). It means that the JmsIO.read() just doesn't consume any message and exit directly.
IMHO, it makes sense to define the maxNumRecords value to Long.MAX_VALUE by default. Thanks to that, JmsIO.read() will really work in unbounded form.
Attachments
Issue Links
- links to