Uploaded image for project: 'ActiveMQ'
  1. ActiveMQ
  2. AMQ-4003

Add option to PooledConnectionFactory to control if connection should be created on startup or not

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.6.0
    • Fix Version/s: 5.7.0
    • Component/s: Pool
    • Labels:
      None
    • Patch Info:
      Patch Available

      Description

      The PooledConnectionFactory will currently always on startup create a connection, and if that fails a WARN is logged and ignored.

      I think we should allow end users to configure if they want the pool to create a connection on startup or not.

      If they set the option to false, then the connection is created on-demand.

      I have attached a patch with this option, using a default value of true to keep current behavior. The patch also adds some more logging, as well removing some not needed code, in the start method, ie the IOExceptionSupport that don't make sense.

        Attachments

        1. AMQ-4003.patch
          5 kB
          Claus Ibsen

          Activity

            People

            • Assignee:
              davsclaus Claus Ibsen
              Reporter:
              davsclaus Claus Ibsen
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: