【问题标题】:Unable to upgrade client from ActiveMQ 5.5.1 to ActiveMQ 5.10无法将客户端从 ActiveMQ 5.5.1 升级到 ActiveMQ 5.10
【发布时间】:2015-01-19 00:14:42
【问题描述】:

我无法将客户端从 ActiveMQ 5.5.1 升级到 ActiveMQ 5.10,activemq 一直忽略我的设置并尝试连接到端口“61616”上的默认“localhost”。

这是我运行良好的 ActiveMQ Maven 依赖项

   <dependency>
        <groupId>org.apache.activemq</groupId>
        <artifactId>activemq-core</artifactId>
        <version>5.5.1</version>
    </dependency>
    <dependency>
        <groupId>org.apache.activemq</groupId>
        <artifactId>activemq-optional</artifactId>
        <version>5.5.1</version>
        <exclusions>
            <exclusion>
                <groupId>org.eclipse.jetty.aggregate</groupId>
                <artifactId>jetty-all-server</artifactId>
            </exclusion>
            <exclusion>
                <groupId>org.eclipse.jetty</groupId>
                <artifactId>jetty-webapp</artifactId>
            </exclusion>
            <exclusion>
                <groupId>org.eclipse.jetty</groupId>
                <artifactId>jetty-websocket</artifactId>
            </exclusion>
            <exclusion>
                <groupId>org.springframework</groupId>
                <artifactId>spring-jms</artifactId>
            </exclusion>
        </exclusions>
    </dependency>
    <dependency>
        <groupId>org.apache.activemq</groupId>
        <artifactId>activemq-pool</artifactId>
        <version>5.5.1</version>
    </dependency>
    <dependency>
        <groupId>org.apache.activemq</groupId>
        <artifactId>activemq-camel</artifactId>
        <version>5.5.1</version>
    </dependency>

这是我的新 ActiveMQ 5.10 不工作

  <dependency>
        <groupId>org.apache.activemq</groupId>
        <artifactId>activemq-client</artifactId>
        <version>5.10.0</version>
    </dependency> 
    <dependency>
        <groupId>org.apache.activemq</groupId>
        <artifactId>activemq-pool</artifactId>
        <version>5.10.0</version>
    </dependency>
    <dependency>
        <groupId>org.apache.activemq</groupId>
        <artifactId>activemq-camel</artifactId>
        <version>5.10.0</version>
    </dependency>

这是我对 ActiveMQConnectionFctory 的 spring.xml 设置

 <bean id="jmsConnectionFactory" class="org.apache.activemq.ActiveMQConnectionFactory">
    <property name="brokerURL" value="failover:(ssl://${jms.broker.host}:${jms.broker.ssl.port})?timeout=5000"/>
   </bean>

无论出于何种原因,ActiveMQ 5.10 不断尝试连接到 localhost\61616。即使我的变量 ${jms.broker.host}:${jms.broker.ssl.port} 没有指向 localhost/61616。

我不断收到的错误是

18:01:54.267 [ActiveMQ Task-1] WARN o.a.a.t.failover.FailoverTransport - 无法连接到 [tcp://localhost:61616] 后:10 次尝试继续重试。

另外,ActiveMQ 还集成了 spring 和 apache camel。

我是否缺少依赖项,或者 ActiveMQConnectionFactory 不能再与 ActiveMQ 5.10 一起使用?

谢谢。


问题已解决:

没有创建 Bean 'org.apache.activemq.pool.PooledConnectionFactory',因为属性 'maximumActive' 不再存在,只好使用新的。

【问题讨论】:

    标签: java spring activemq


    【解决方案1】:

    问题已解决:

    没有创建 Bean 'org.apache.activemq.pool.PooledConnectionFactory',因为属性 'maximumActive' 不再存在,只好使用新的。

    【讨论】:

    • 您能更详细地描述您的解决方案吗?我不明白这个'maximumActive' doesn't exist anymore, just had to use the new one
    猜你喜欢
    • 2015-09-26
    • 1970-01-01
    • 2015-01-25
    • 2018-08-20
    • 2011-02-12
    • 1970-01-01
    • 1970-01-01
    • 2013-10-06
    • 2010-09-23
    相关资源
    最近更新 更多