Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-569

JMS IO should set maxNumRecords to Long.MAX_VALUE by default

Details

    • Improvement
    • Status: Resolved
    • P2
    • Resolution: Fixed
    • None
    • 0.3.0-incubating
    • io-java-jms
    • 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

          Activity

            People

              jbonofre Jean-Baptiste Onofré
              jbonofre Jean-Baptiste Onofré
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: