activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <james.strac...@gmail.com>
Subject Re: Interfacing with legacy Websphere MQ clients
Date Thu, 04 Dec 2008 15:47:51 GMT
2008/12/4 Stephen J <stephen.joyner@mclaneco.com>:
>
> I have found the solution for setting the targetClient property with JMS
> Bridging just in case anyone runs up against this issue.
>
> Here's the configuration for the bridge. I can send more of the config in
> case anyone is interested. I'm pulling from an MQ queue(TEST.INBOUND) then
> routing it through a virtual destination to a different MQ
> queue(TEST.OUTBOUND).
>
> <jmsBridgeConnectors>
>        <jmsQueueConnector
>          outboundQueueConnectionFactory="#mqXAConFactory" outboundUsername=" "
> outboundPassword=" " >
>          <inboundQueueBridges>
>                <inboundQueueBridge
>                  inboundQueueName="TEST.INBOUND" localQueueName="VRT.MQTEST.WITH.AUDIT"
> />
>          </inboundQueueBridges>
>           <outboundQueueBridges>
>                <outboundQueueBridge localQueueName="OUT_TRX"
>                          outboundQueueName="queue:///TEST.OUTBOUND?targetClient=1" />
>                 </outboundQueueBridges>
>        </jmsQueueConnector>
> </jmsBridgeConnectors>
>
> Hope this helps someone.

So if MQ supports the URI notation...

queue:///TEST.OUTBOUND?targetClient=1

you could have done this in camel via

<route>
  <from uri="activemq:TEST.INBOUND"/>
  <to uri="mq://TEST.OUTBOUND?targetClient=1"/>
</route>

assuming you setup the ActiveMQComponent as "activemq" and a
JmsComponent as "mq" in your spring.

-- 
James
-------
http://macstrac.blogspot.com/

Open Source Integration
http://fusesource.com/

Mime
View raw message