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.
James.Strachan wrote:
>
> 2008/12/4 Stephen J <[EMAIL PROTECTED]>:
>>
>> What is the camel syntax for sending to a queue bean? I cannot find it in
>> the
>> documentation or examples.
>>
>> My queue bean is defined:
>> <bean id="testMQdest" class="com.ibm.mq.jms.MQQueue">
>> <constructor-arg index="0" value="AMQ.TEST.Q"/>
>> <property name="targetClient" value="1" />
>> </bean>
>>
>> I would figure the camel route should be something like (This doesn't
>> work):
>> <camelContext id="camel">
>> <route>
>> <from uri="mqin:INQ"/>
>> <to ref="testMQdest"/>
>> </route>
>> </camelContext>
>
>
> You'll need to create a JmsEndpoint for the <to> to refer to; which
> should be configured with the MQ queue object.
>
> Its currently a little harder to totally configure a JMS endpoint with
> a custom Destination than it should be - here's an issue to track
> this...
> https://issues.apache.org/activemq/browse/CAMEL-1147
>
> I should have an example commited in trunk shortly...
>
> BTW the Camel forums are a better place to ask these questions going
> forwards...
>
> http://activemq.apache.org/camel/discussion-forums.html
> --
> James
> -------
> http://macstrac.blogspot.com/
>
> Open Source Integration
> http://fusesource.com/
>
>
--
View this message in context:
http://www.nabble.com/Interfacing-with-legacy-Websphere-MQ-clients-tp20835055p20835962.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.