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

Default the ServerUrl to vm://brokerName?create=false when an embedded broker is specified with brokerXmlConfig

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 5.2.0
    • 5.10.0
    • JCA Container
    • None
    • Patch Available

    Description

      By default, a hardcoded ServerUrl resource configuration property must be specified in the ra.xml to connect to a broker. However, when using an embedded broker initialized from the BrokerXmlConfig configuration property, the ServerUrl should be defaulted to vm://brokerName (where brokerName is obtained via Broker.getBrokerName()). This would enable more flexibility in configuring the embedded broker name (e.g. using spring property substitution to name) as opposed to hardcoding as vm://localhost or some other uri in the ra.xml.

      I've created a patch against trunk to ActiveMQResourceAdapter.java that adds this feature.

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            mckibben Michael McKibben
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 0.5h
                0.5h
                Remaining:
                Remaining Estimate - 0.5h
                0.5h
                Logged:
                Time Spent - Not Specified
                Not Specified