【问题标题】:Unable to see queue information or messages in activemq webconsole在 activemq webconsole 中看不到队列信息或消息
【发布时间】:2013-06-25 20:09:46
【问题描述】:

我正在尝试使用 MySql 配置 Activemq。一切似乎都已正确配置,因为我能够通过代码发送和接收消息。但是我在 Activemq Web 控制台中看不到任何队列或消息信息。

下面是我的 activemq 配置。任何帮助都会得到帮助。

谢谢!

Activemq.xml:

<beans
  xmlns="http://www.springframework.org/schema/beans"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
  http://activemq.apache.org/schema/core http://activemq.apache.org/schema/core/activemq-core.xsd">

    <bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
      <property name="locations">
          <value>file:${activemq.conf}/credentials.properties</value>
      </property>
  </bean>

  <broker useJmx="false" brokerName="jdbcBroker" xmlns="http://activemq.apache.org/schema/core">

    <persistenceAdapter>  
     <jdbcPersistenceAdapter dataDirectory="${activemq.base}/activemq-data" dataSource="#mysql-ds"/>  
  </persistenceAdapter>
    <transportConnectors>
       <transportConnector name="default" uri="tcp://0.0.0.0:61616"/>
    </transportConnectors>
  </broker>

  <bean id="mysql-ds" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
    <property name="driverClassName" value="com.mysql.jdbc.Driver"/>
    <property name="url" value="jdbc:mysql://localhost/activemq?relaxAutoCommit=true"/>
    <property name="username" value="admin"/>
    <property name="password" value="root"/>
    <property name="maxActive" value="200"/>
    <property name="poolPreparedStatements" value="true"/>
  </bean>

  <import resource="jetty.xml"/>
</beans>

【问题讨论】:

    标签: mysql jms activemq


    【解决方案1】:

    由于 WebConsole 使用 JMX 检索数据,您应该尝试从代理配置中删除 useJmx="false"。

    【讨论】:

      猜你喜欢
      • 2018-11-30
      • 2018-07-04
      • 1970-01-01
      • 2011-08-02
      • 2015-09-23
      • 1970-01-01
      • 2022-06-14
      • 1970-01-01
      • 2017-02-18
      相关资源
      最近更新 更多