Am 27.07.12 14:16 schrieb "Caa_man" unter <[email protected]>:

>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?
>

No you can't specify a QueueManager name inside the URI by the from
clause, as the concept of QueueManager is an IBM abstraction which is
*not* part of the JMS specification, so why not supported. For example
AFAIK ActiveMQ doesn't have the notion of QueueManager and whatnot.

To my understanding the way you've tried should already work (using
different bean id's). So what is exactly the problem? What do you mean
with "But it doesn't work"?

Babak 

>
>
>--
>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.


Reply via email to