camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Caa_man <...@acs-it.ru>
Subject Several WMQ Managers
Date Fri, 27 Jul 2012 12:16:36 GMT
Hello everyone!

I would like to use several MQ managers in my Camel application (I use Camel
2.9.2) like this:

<route>
<from uri="wmq1:queue:WMQ1.QUEUE"/>
...
</route>

<route>
<from uri="wmq2:queue:WMQ2.QUEUE"/>
...
</route>

     <bean id="wmq1" class="org.apache.camel.component.jms.JmsComponent">
	  <property name="connectionFactory">
	    <bean class="com.ibm.mq.jms.MQConnectionFactory">
			<property name="transportType" value="1"/>
		    <property name="hostName" value="localhost"/>
		    <property name="port" value="1423"/>
		    <property name="queueManager" value="QM.FIRST"/>
	    </bean>
	  </property>
	</bean>

     <bean id="wmq2" class="org.apache.camel.component.jms.JmsComponent">
	  <property name="connectionFactory">
	    <bean class="com.ibm.mq.jms.MQConnectionFactory">
			<property name="transportType" value="1"/>
		    <property name="hostName" value="localhost"/>
		    <property name="port" value="1423"/>
		    <property name="queueManager" value="QM.SECOND"/>
	    </bean>
	  </property>
	</bean>

But it doesnt work and i have to use one JmsComponent with name "wmq". So i
hope use this JmsComponent in from's uri with specified QueueManager's name
(not only Queue's name) for several queuemanager/queue pairs. Is it
possible? Or... Are there other ways exist?



--
View this message in context: http://camel.465427.n5.nabble.com/Several-WMQ-Managers-tp5716548.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message