activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephen J <>
Subject Re: Interfacing with legacy Websphere MQ clients
Date Thu, 04 Dec 2008 15:06:26 GMT

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="">
		<constructor-arg index="0" value="AMQ.TEST.Q"/>
		<property name="targetClient" value="1" />

I would figure the camel route should be something like (This doesn't work):
<camelContext id="camel">	
	  <from uri="mqin:INQ"/>
 	  <to ref="testMQdest"/>	

James.Strachan wrote:
> 2008/12/4 Stephen J <>:
>> I am working on a project that uses ActiveMQ to broker messages between
>> Websphere MQ queues. These MQ queues are then read by legacy MQ clients.
>> I
>> have found that when ActiveMQ passes a message to a Websphere MQ it uses
>> JMS
>> by default, thus causing extra information to be added to the message
>> body.
>> Because the clients are legacy MQ clients they do not filter the extra
>> information added to the body as a JMS client would.
>> Therefor, I need to be able to set the targetClient property of the MQ
>> queue
>> destination to 1 in order to send in default MQ format.
>> Can anyone tell me how to set up my destination queue so that I can set
>> the
>> targetClient property?
>> I have looked at the Spring forums and they show how to configure the mq
>> queue bean, but I can't figure out how to tell ActiveMQ to use that bean
>> as
>> a destination.
>> Thanks to anyone who has suggestions.
> Try using Camel to route to MQ? Then you can reuse the same queue bean
> that the spring forums describe how to use?
> -- 
> James
> -------
> Open Source Integration

View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message