2013-06-25 90 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