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

Broker connection string does not allow both failover and compression

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 5.3.0
    • None
    • Connector
    • None
    • apache camel, grails 1.3.2 - server is spring 2.5.6. activemq-all-5.3.0.jar activemq-pool5.3-SNAPSHOT.jar

    Description

      This works (spring resources.groovy in grails):

      _jmsConnectionFactory(ActiveMQConnectionFactory)

      { brokerURL = tcp://localhost:61616?jms.useCompression=true }

      So does this:
      _jmsConnectionFactory(ActiveMQConnectionFactory)

      { brokerURL = failover:(tcp://localhost:61616) }

      But this doesn't
      _jmsConnectionFactory(ActiveMQConnectionFactory)

      { brokerURL = failover:(tcp://localhost:61616?jms.useCompression=true) }

      Error message is:
      195562 [ActiveMQ Task] DEBUG org.apache.activemq.transport.failover.FailoverTransport - Connect fail to: tcp://localhost:61616?jms.useCompression=true, reason: java.lang.IllegalArgumentException: Invalid connect parameters:

      {jms.useCompression=true}

      Had a look at the code and it does seem to say this by default.

      Attachments

        There are no Sub-Tasks for this issue.

        Activity

          People

            Unassigned Unassigned
            jrobens john robens
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: