2008/12/4 Stephen J <[EMAIL PROTECTED]>: > > 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/