Hello,

I have several IBM MQ brokers, who are sending messages through MQ hub.
Messages arriving to Camel have JMSReplyTo property of format
queue://QManager/QueueName. I need to define two Camel routes: first route
reads requests from MQ queue and puts messages to ActiveMQ (IBMMQ2ActiveMQ),
and the seconds route takes response from ActiveMQ queue and sends back to
IBM MQ (ActiveMQ2IBMMQ). Response message must be delivered to the same
QManager, which sent the request.
The first route IBMMQ2ActiveMQ works fine (it also stores JMSReplyTo value
in message headers).
The problem in with ActiveMQ2IBMMQ route. Messages are not delivered to IBM
MQ. I am getting error:
Failed to resolve endpoint: ibmmq://queue://<qmngr>/<queue>?targetClient=1
due to:
Failed to resolve endpoint: ibmmq://queue://<qmngr>/<queue>?targetClient=1
due to: There are 1 parameters that couldn't be set on th
e endpoint. Check the uri if the parameters are spelt correctly and that
they are properties of the endpoint. Unknown parameters=[{targetClient=1}]

(it is strange why camel puts too many "//" in ibmmq://queue://....)

Without targetClient=1, error is returned:
 javax.jms.InvalidDestinationException: MQJMS2008: failed to open MQ queue
<qmngr>/<queue>; nested exception is com.ibm.mq.MQExce
ption: MQJE001: Completion Code 2, Reason 2085

The test route, which justs returns the same message to IBM MQ works without
problems:
<route id="IMBMQ_echo">
  <from uri="ibmmq:queue:<queue>?useMessageIDAsCorrelationID=true" />
  <setExchangePattern pattern="InOut" />
  <convertBodyTo type="java.lang.String" />
</route>

Has anyone experienced similar problems and could help with solution?
Is it possible, that camel can't handle endpoint with
uri="ibmmq:queue://<qmngr>/<queue>"?
Thanks.
-- 
View this message in context: 
http://camel.465427.n5.nabble.com/IBM-Websphere-MQ-Camel-routes-tp3366282p3366282.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to