Java 是否可以在Mulesoft中嵌入类似ActiveMQ的实例

Java 是否可以在Mulesoft中嵌入类似ActiveMQ的实例,java,spring,mule-studio,Java,Spring,Mule Studio,我想将活动MQ代理嵌入到Mule流中。我已经读到消息被保存到文件中。我阅读了《action中的ActiveMQ》一书,因此我使用Spring嵌入ActiveMQ,并使用BrokerFactoryBean进行了配置: <spring:beans> <spring:bean class="org.apache.activemq.xbean.BrokerFactoryBean" id="broker"> <spring:proper

我想将活动MQ代理嵌入到Mule流中。我已经读到消息被保存到文件中。我阅读了《action中的ActiveMQ》一书,因此我使用Spring嵌入ActiveMQ,并使用BrokerFactoryBean进行了配置:

<spring:beans>
    <spring:bean class="org.apache.activemq.xbean.BrokerFactoryBean"
        id="broker">
        <spring:property value="classpath:activemq.xml" name="config" />
        <spring:property value="true" name="start" />
    </spring:bean>
</spring:beans>
添加库Activemq-all-5.8.0.jar

配置文件为activemq.xml:

<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:amq="http://activemq.apache.org/schema/core"
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-2.0.xsd
http://activemq.apache.org/schema/core http://activemq.apache.org/schema/core/activemq-core.xsd
http://activemq.apache.org/camel/schema/spring http://activemq.apache.org/camel/schema/spring/camel-spring.xsd">
<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer" />
    <broker xmlns="http://activemq.apache.org/schema/core" brokerName="localhost">
        <!-- Destination specific policies using destination names or wildcards -->
        <destinationPolicy>
            <policyMap>
                <policyEntries>
                    <policyEntry queue=">" memoryLimit="50mb"/>
                    <policyEntry topic=">" memoryLimit="50mb"/>
                </policyEntries>
            </policyMap>
        </destinationPolicy>
        <!-- Use the following to configure how ActiveMQ is exposed in JMX -->
        <managementContext>
            <managementContext createConnector="false"/>
        </managementContext>
        <!-- The store and forward broker networks ActiveMQ will listen to -->
        <networkConnectors>
            <!-- by default just auto discover the other brokers -->
            <networkConnector name="default-nc" uri="multicast://default"/>
            <!-- Example of a static configuration:
            <networkConnector name="host1 and host2" uri="static://(tcp://host1:61616,tcp://host2:61616)"/>
            -->
        </networkConnectors>
        <!-- KahaDB definition -->
        <persistenceAdapter>
            <kahaDB directory="{user.dir}/activemq-data/KahaDB" />
        </persistenceAdapter>
        <!--  The maximum about of space the broker will use before slowing down producers -->
        <systemUsage>
            <systemUsage>
                <memoryUsage>
                    <memoryUsage limit="200 mb"/>
                </memoryUsage>
                <storeUsage>
                    <storeUsage limit="10 gb" name="foo"/>
                </storeUsage>
                <tempUsage>
                    <tempUsage limit="1000 mb"/>
                </tempUsage>
            </systemUsage>
        </systemUsage>
        <!-- The transport connectors ActiveMQ will listen to -->
        <transportConnectors>
            <transportConnector name="openwire" uri="tcp://localhost:61616"/>
        </transportConnectors>
    </broker>
问题是:

1我有JMS的流程,如何用web界面可视化尾部的消息?是否可以从web界面可视化队列,例如当断开的url被删除时tcp://localhost:61616 用于连接JMS服务器活动MQ的URL

2我想从MULE控制台将消息存储到DB中,可以吗