2013-06-25 64 views
1

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

下面是我的activemq配置。任何帮助apprciated。

谢谢!

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> 

回答

3

随着Web控制台使用JMX来检索数据,你应该尝试从你的经纪人配置中删除useJmx =“假”。

+0

完美! +1 ... – Piyush