我们正尝试通过jms上的jboss保险丝骆驼集成项目将消息从一个activemq队列发送到另一个activemq队列。 我们正在使用以下软件: 1)Jboss开发人员工作室12.0.0.GA 2)保险丝卡夫7.3.0 3)Apache活动MQ 5.15.9 4)Maven 3.6.1
我们在camel-context.xml中添加了connectionfactory详细信息,其中包括brokerURL和用户名密码的详细信息。 我们尝试通过activemq之一发送消息,但该消息未被接收,因此在activemq ui'http://localhost:8161/'中看不到任何活动的使用者。 如果我们在activemq或融合esb camel集成项目中缺少某些配置,请告诉我们。
<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://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd">
<camelContext id="_camelContext1" xmlns="http://camel.apache.org/schema/spring">
<route id="_route1">
<from id="_from1" uri="activemq:queue:foo.bar"/>
<to id="_to2" uri="activemq:queue:DemoQueue2"/>
</route>
</camelContext>
<bean class="org.apache.activemq.ActiveMQConnectionFactory" id="jmsConnectionFactory">
<property name="brokerURL" value="tcp://localhost:61616"/>
<property name="userName" value="admin"/>
<property name="password" value="admin"/>
</bean>
<bean class="org.apache.activemq.pool.PooledConnectionFactory"
destroy-method="stop" id="pooledConnectionFactory" init-method="start">
<property name="maxConnections" value="8"/>
<property name="connectionFactory" ref="jmsConnectionFactory"/>
</bean>
<bean class="org.apache.camel.component.jms.JmsConfiguration" id="jmsConfig">
<property name="connectionFactory" ref="pooledConnectionFactory"/>
<property name="concurrentConsumers" value="10"/>
</bean>
<bean class="org.apache.activemq.camel.component.ActiveMQComponent" id="activemq">
<property name="configuration" ref="jmsConfig"/>
</bean>
邮件应该从队列(foo.bar)中拾取,并发送到同一activemq代理上的队列(DemoQueue2)。