title: ActiveMQ Artemis and broker URI
body: <p>I have a Spring Framework config file</p>
  <pre class="lang-xml prettyprint-override"><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
  &lt;beans
    xmlns=&quot;http://www.springframework.org/schema/beans&quot;
    xmlns:amq=&quot;http://activemq.apache.org/schema/core&quot;
    xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
    xsi:schemaLocation=&quot;http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
    http://activemq.apache.org/schema/core http://activemq.apache.org/schema/core/activemq-core-5.15.12.xsd&quot;&gt;
  
      &lt;amq:queue id=&quot;testRequestQueue&quot; physicalName=&quot;test.storm.in.request.queue&quot; /&gt;
  
      &lt;amq:connectionFactory id=&quot;jmsConnectionFactory&quot; brokerURL=&quot;failover:(tcp://localhost:61616)?retryInterval=1000&amp;amp;retryIntervalMultiplier=1.5&amp;amp;maxRetryInterval=60000&amp;amp;maxReconnectAttempts=1000&quot; /&gt;
  
  &lt;/beans&gt;
  </code></pre>
  <p>However, when I run on the Storm cluster I get an error saying:</p>
  <pre><code>Caused by: java.lang.IllegalArgumentException: Invalid connect parameters: {retryIntervalMultiplier=1.5, maxRetryInterval=60000, retryInterval=1000}
  </code></pre>
  <p>Documentation is very confusing. I'm not sure if ActiveMQ and ActiveMQ Artemis configuration is the same or similar. I have no idea how to configure the broker uri for Apache ActiveMQ Artemis.</p>
  <p>So my question is what I'm doing wrong?</p>
  <p>Here's my <code>pom.xml</code>:</p>
  <pre class="lang-xml prettyprint-override"><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
  &lt;project xmlns=&quot;http://maven.apache.org/POM/4.0.0&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; xsi:schemaLocation=&quot;http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd&quot;&gt;
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
      &lt;groupId&gt;org.example&lt;/groupId&gt;
      &lt;artifactId&gt;itvs_pletra_imaps_test1_pagal_schema&lt;/artifactId&gt;
      &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
      &lt;packaging&gt;jar&lt;/packaging&gt;
      &lt;properties&gt;
          &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
          &lt;maven.compiler.source&gt;11&lt;/maven.compiler.source&gt;
          &lt;maven.compiler.target&gt;11&lt;/maven.compiler.target&gt;
          &lt;maven.compiler.plugin&gt;3.8.1&lt;/maven.compiler.plugin&gt;
          &lt;maven-surefire-plugin.version&gt;3.0.0-M5&lt;/maven-surefire-plugin.version&gt;
          &lt;maven-war-plugin.version&gt;3.3.1&lt;/maven-war-plugin.version&gt;
          &lt;javee-api.version&gt;8.0.1&lt;/javee-api.version&gt;
          &lt;reactive-streams.version&gt;1.0.3&lt;/reactive-streams.version&gt;
          &lt;spring-web-and-context.version&gt;5.2.9.RELEASE&lt;/spring-web-and-context.version&gt;
          &lt;httpclient.version&gt;4.5.12&lt;/httpclient.version&gt;
          &lt;jaxb-api.version&gt;2.4.0-b180830.0359&lt;/jaxb-api.version&gt;
          &lt;hibernate-core.version&gt;5.3.0.Final&lt;/hibernate-core.version&gt;
          &lt;mockito-junit-jupiter.version&gt;3.5.10&lt;/mockito-junit-jupiter.version&gt;
          &lt;junit-jupiter-api.version&gt;5.7.0&lt;/junit-jupiter-api.version&gt;
          &lt;junit-jupiter-params.version&gt;5.7.0&lt;/junit-jupiter-params.version&gt;
          &lt;slf4j-api.version&gt;2.0.0-alpha1&lt;/slf4j-api.version&gt;
          &lt;log4j-core.version&gt;2.13.3&lt;/log4j-core.version&gt;
          &lt;log4j-slf4j-impl.version&gt;2.13.3&lt;/log4j-slf4j-impl.version&gt;
          &lt;cxf-rt-frontend-jaxws.version&gt;3.3.6&lt;/cxf-rt-frontend-jaxws.version&gt;
          &lt;cxf.version&gt;3.4.0&lt;/cxf.version&gt;
          &lt;maven-assembly-plugin.version&gt;3.3.0&lt;/maven-assembly-plugin.version&gt;
          &lt;maven-shade-plugin.version&gt;3.2.4&lt;/maven-shade-plugin.version&gt;
          &lt;storm-core.version&gt;2.2.0&lt;/storm-core.version&gt;
          &lt;storm-client.version&gt;2.2.0&lt;/storm-client.version&gt;
          &lt;storm-jms.version&gt;2.2.0&lt;/storm-jms.version&gt;
          &lt;activemq-spring.version&gt;5.16.0&lt;/activemq-spring.version&gt;
          &lt;javax.jms-api.version&gt;2.0.1&lt;/javax.jms-api.version&gt;
          &lt;artemis-spring-integration.version&gt;2.15.0&lt;/artemis-spring-integration.version&gt;
      &lt;/properties&gt;
      &lt;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;javax.xml.bind&lt;/groupId&gt;
              &lt;artifactId&gt;jaxb-api&lt;/artifactId&gt;
              &lt;version&gt;${jaxb-api.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.storm&lt;/groupId&gt;
              &lt;artifactId&gt;storm-jms-examples&lt;/artifactId&gt;
              &lt;version&gt;${storm-core.version}&lt;/version&gt;
              &lt;exclusions&gt;
                  &lt;exclusion&gt;
                      &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
                      &lt;artifactId&gt;log4j-over-slf4j&lt;/artifactId&gt;
                  &lt;/exclusion&gt;
                  &lt;exclusion&gt;
                      &lt;groupId&gt;org.apache.logging.log4j&lt;/groupId&gt;
                      &lt;artifactId&gt;log4j-api&lt;/artifactId&gt;
                  &lt;/exclusion&gt;
              &lt;/exclusions&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;javax.jms&lt;/groupId&gt;
              &lt;artifactId&gt;javax.jms-api&lt;/artifactId&gt;
              &lt;version&gt;${javax.jms-api.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.activemq&lt;/groupId&gt;
              &lt;artifactId&gt;apache-artemis&lt;/artifactId&gt;
              &lt;version&gt;2.15.0&lt;/version&gt;
              &lt;type&gt;pom&lt;/type&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework&lt;/groupId&gt;
              &lt;artifactId&gt;spring-core&lt;/artifactId&gt;
              &lt;version&gt;${spring-web-and-context.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.activemq&lt;/groupId&gt;
              &lt;artifactId&gt;activemq-spring&lt;/artifactId&gt;
              &lt;version&gt;${activemq-spring.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.activemq&lt;/groupId&gt;
              &lt;artifactId&gt;artemis-spring-integration&lt;/artifactId&gt;
              &lt;version&gt;2.15.0&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.xbean&lt;/groupId&gt;
              &lt;artifactId&gt;xbean-spring&lt;/artifactId&gt;
              &lt;version&gt;4.18&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.cxf&lt;/groupId&gt;
              &lt;artifactId&gt;cxf-rt-frontend-jaxws&lt;/artifactId&gt;
              &lt;version&gt;${cxf-rt-frontend-jaxws.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.storm&lt;/groupId&gt;
              &lt;artifactId&gt;storm-core&lt;/artifactId&gt;
              &lt;version&gt;${storm-core.version}&lt;/version&gt;
              &lt;scope&gt;provided&lt;/scope&gt;
              &lt;exclusions&gt;
                  &lt;exclusion&gt;
                      &lt;groupId&gt;org.apache.logging.log4j&lt;/groupId&gt;
                      &lt;artifactId&gt;log4j-core&lt;/artifactId&gt;
                  &lt;/exclusion&gt;
                  &lt;exclusion&gt;
                      &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
                      &lt;artifactId&gt;log4j-over-slf4j&lt;/artifactId&gt;
                  &lt;/exclusion&gt;
                  &lt;exclusion&gt;
                      &lt;groupId&gt;org.apache.logging.log4j&lt;/groupId&gt;
                      &lt;artifactId&gt;log4j-api&lt;/artifactId&gt;
                  &lt;/exclusion&gt;
                  &lt;exclusion&gt;
                      &lt;groupId&gt;org.apache.logging.log4j&lt;/groupId&gt;
                      &lt;artifactId&gt;log4j-slf4j-impl&lt;/artifactId&gt;
                  &lt;/exclusion&gt;
                  &lt;exclusion&gt;
                      &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
                      &lt;artifactId&gt;slf4j-api&lt;/artifactId&gt;
                  &lt;/exclusion&gt;
              &lt;/exclusions&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.storm&lt;/groupId&gt;
              &lt;artifactId&gt;storm-jms&lt;/artifactId&gt;
              &lt;version&gt;${storm-jms.version}&lt;/version&gt;
              &lt;exclusions&gt;
                  &lt;exclusion&gt;
                      &lt;groupId&gt;org.apache.logging.log4j&lt;/groupId&gt;
                      &lt;artifactId&gt;log4j-core&lt;/artifactId&gt;
                  &lt;/exclusion&gt;
                  &lt;exclusion&gt;
                      &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
                      &lt;artifactId&gt;log4j-over-slf4j&lt;/artifactId&gt;
                  &lt;/exclusion&gt;
                  &lt;exclusion&gt;
                      &lt;groupId&gt;org.apache.logging.log4j&lt;/groupId&gt;
                      &lt;artifactId&gt;log4j-api&lt;/artifactId&gt;
                  &lt;/exclusion&gt;
                  &lt;exclusion&gt;
                      &lt;groupId&gt;org.apache.logging.log4j&lt;/groupId&gt;
                      &lt;artifactId&gt;log4j-slf4j-impl&lt;/artifactId&gt;
                  &lt;/exclusion&gt;
                  &lt;exclusion&gt;
                      &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
                      &lt;artifactId&gt;slf4j-api&lt;/artifactId&gt;
                  &lt;/exclusion&gt;
              &lt;/exclusions&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.storm&lt;/groupId&gt;
              &lt;artifactId&gt;storm-client&lt;/artifactId&gt;
              &lt;version&gt;${storm-client.version}&lt;/version&gt;
              &lt;scope&gt;provided&lt;/scope&gt;
              &lt;exclusions&gt;
                  &lt;exclusion&gt;
                      &lt;!-- declare the exclusion here --&gt;
                      &lt;groupId&gt;org.apache.logging.log4j&lt;/groupId&gt;
                      &lt;artifactId&gt;log4j-core&lt;/artifactId&gt;
                  &lt;/exclusion&gt;
                  &lt;exclusion&gt;
                      &lt;!-- declare the exclusion here --&gt;
                      &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
                      &lt;artifactId&gt;log4j-over-slf4j&lt;/artifactId&gt;
                  &lt;/exclusion&gt;
                  &lt;exclusion&gt;
                      &lt;!-- declare the exclusion here --&gt;
                      &lt;groupId&gt;org.apache.logging.log4j&lt;/groupId&gt;
                      &lt;artifactId&gt;log4j-api&lt;/artifactId&gt;
                  &lt;/exclusion&gt;
                  &lt;exclusion&gt;
                      &lt;!-- declare the exclusion here --&gt;
                      &lt;groupId&gt;org.apache.logging.log4j&lt;/groupId&gt;
                      &lt;artifactId&gt;log4j-slf4j-impl&lt;/artifactId&gt;
                  &lt;/exclusion&gt;
                  &lt;exclusion&gt;
                      &lt;!-- declare the exclusion here --&gt;
                      &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
                      &lt;artifactId&gt;slf4j-api&lt;/artifactId&gt;
                  &lt;/exclusion&gt;
              &lt;/exclusions&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.reactivestreams&lt;/groupId&gt;
              &lt;artifactId&gt;reactive-streams&lt;/artifactId&gt;
              &lt;version&gt;${reactive-streams.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
              &lt;artifactId&gt;slf4j-api&lt;/artifactId&gt;
              &lt;version&gt;${slf4j-api.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.httpcomponents&lt;/groupId&gt;
              &lt;artifactId&gt;httpclient&lt;/artifactId&gt;
              &lt;version&gt;${httpclient.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.logging.log4j&lt;/groupId&gt;
              &lt;artifactId&gt;log4j-core&lt;/artifactId&gt;
              &lt;version&gt;${log4j-core.version}&lt;/version&gt;
              &lt;scope&gt;provided&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.logging.log4j&lt;/groupId&gt;
              &lt;artifactId&gt;log4j-slf4j-impl&lt;/artifactId&gt;
              &lt;version&gt;${log4j-slf4j-impl.version}&lt;/version&gt;
              &lt;scope&gt;provided&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.jboss.ws&lt;/groupId&gt;
              &lt;artifactId&gt;jbossws-api&lt;/artifactId&gt;
              &lt;version&gt;1.1.2.Final&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;javax&lt;/groupId&gt;
              &lt;artifactId&gt;javaee-api&lt;/artifactId&gt;
              &lt;version&gt;${javee-api.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.hibernate&lt;/groupId&gt;
              &lt;artifactId&gt;hibernate-core&lt;/artifactId&gt;
              &lt;version&gt;${hibernate-core.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.junit.jupiter&lt;/groupId&gt;
              &lt;artifactId&gt;junit-jupiter-params&lt;/artifactId&gt;
              &lt;version&gt;${junit-jupiter-params.version}&lt;/version&gt;
              &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.junit.jupiter&lt;/groupId&gt;
              &lt;artifactId&gt;junit-jupiter-api&lt;/artifactId&gt;
              &lt;version&gt;${junit-jupiter-api.version}&lt;/version&gt;
              &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.mockito&lt;/groupId&gt;
              &lt;artifactId&gt;mockito-junit-jupiter&lt;/artifactId&gt;
              &lt;version&gt;${mockito-junit-jupiter.version}&lt;/version&gt;
              &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt;
  &lt;/project&gt;
  </code></pre>