Hi Claus, many thanks for your ideas and suggestions so far!
We have tested the above tips you had. Both on their own and together
without any effect we can see on the message which ends up on our final
queue destination. Browsing the message we get on the IBM MQ queue we get
the following:
XQH .... CAMELoutputchannel
queue.out
CT ....................ÿÿÿÿ....
....R...MQHRF2 .............AMQ Qmgr
<<exH ...$.....................
......................
Qmgr
CAMELusertester...'
Vu%%._IneiZ..................
.........WebS
phere MQ Client for Java20080924
11025671 RFH .........................
MQSTR ........,...........,<mcd><Msd>
jms_text</Msd><Type></Type></mcd>
...X<jms><Dst>queue:///queue.out</Dst>
<Tms>1222311223456</Tms><Cid></Cid>
<Dlv>2</Dlv></jms> ......
<usr><jms_IBM_MsgType dt='i4'>1</jms_IBM_MsgType>
<jms_IBM_Format>MQSTR</jms_IBM_Format>
</usr>
my chocolatechip cookie recipie
Without getting into MQ details it looks very much as we have a JMSMessage
around the TextMessage which we are intending to put onto the queue. (Clues
too why we think so is we see a MQHRF2 and a RFH part.) Also we see the
MQSTR and <Msd>jms_text</Msd> beeing recognized.
Our current guess (and let us assume this is the case) is that we are not
"peeling" off the camelWrapper Message before putting it onto the IBM MQ
queue.
How can we avoid sending our textMessage inside this camelWrapperMessage?
Have we made a misstake thinking we can use the following configuration
inside the camel-context.xml?
We refer to this bean when we use the
from(activemq:queue.in).to(ibmmq:queue///queue.out)
<bean id="ibmmq" class="org.apache.camel.component.jms.JmsComponent">
<property name="connectionFactory">
<bean class="com.ibm.mq.jms.MQQueueConnectionFactory">
<property name="transportType">
<util:constant static-field="com.ibm.mq.jms.JMSC.MQJMS_CLIENT_NONJMS_MQ"/>
</property>
<property name="queueManager" value="MW01"/>
<property name="hostName" value="172.23.1.19"/>
<property name="port" value="1414"/>
</bean>
</property>
</bean>
--
View this message in context:
http://www.nabble.com/Bridging-the-ActiveMQ-with-IBM-Websphere-using-Camel-tp19623329s22882p19646763.html
Sent from the Camel - Users mailing list archive at Nabble.com.