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

AbstractAmqCommand should allow the connection factory to be changed.

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 5.5.0
    • 5.6.0
    • Broker
    • None
    • Patch Available

    Description

      AbstractAmqCommand only allows an ActiveMQConnectionFactory to be used. I've got a custom factory that I would like to be able to use from the command line interface.

      I'd like to see:
      get/setFactory implemented on AbstractAmqCommand, as well as some sort of method to override the connection factory being used. I'm thinking along the lines of:

      --factory com.yahoo.activemq.YahooActiveMQConnectionFactory

      Then if the --factory option is set, then this class will be implemented and used, otherwise ActiveMQConnectionFactory.

      I'll attach a patch shortly for this.

      Attachments

        1. AMQ-3410.patch
          9 kB
          Allen Reese
        2. AMQ-3410_add_tests.patch
          15 kB
          Allen Reese

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            dejanb Dejan Bosanac
            areese Allen Reese
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment