日期:2014-05-20  浏览次数:20615 次

servicemix集成activemq的问题
servicemix集成activemq.我只找到了activemq-broker一个配置文件。其他的activemq都找不到。我知道因为集成了servicemix可能不知道在哪里找。单独的activemq我知道怎么配置。可是集成之后的activemq我都不知道怎么配置了。请教各位大神。现在有几个问题。
1. 如何配置在一台机上去访问另外一台机上的activemq(与servicemix集成之后的)。
2.activemq的安全验证怎么配置。
3.其他的协议怎么配置。比如vm协议。


在这里谢谢各位大哥大姐了。
  如果可以的话加分。
  谢谢。
------解决方案--------------------
在服务器端的activemq-broker.xml里面配置
<transportConnectors>
            <transportConnector name="openwire" uri="tcp://0.0.0.0:61616"/>
            <transportConnector name="stomp" uri="stomp://0.0.0.0:61613"/>
</transportConnectors>
在客户端的blueprint里面配置
    <bean id="MerchantRemote" class="org.apache.activemq.camel.component.ActiveMQComponent">
        <property name="brokerURL" value="tcp://192.168.0.210:61616" />
    </bean>
然后客户端的所有消息全部
<route>
            <from uri="MerchantRemote:queue:Merchant.BonusResult"/>
            <to uri="bean:PrizecodeQuartz"/>
</route>

这样就可以了