You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Ashutosh Kumar <as...@gmail.com> on 2012/06/14 13:39:09 UTC

How to set header as RFH1 for ibm mq

I am trying to send message from camel route to IBM mq. I need to send it
as RFH1 header. I tried targetClient=1 but that sends as RFH2 . Also
setBrokerVersion does not work . Setting brokerVersion is not allowed on
com.ibm.mq.jms.MQQueueConnectionFactory .

Thanks

Re: How to set header as RFH1 for ibm mq

Posted by Magnus Palmér <ma...@gmail.com>.
(Not really a Camel specific question.)

What version is the WMQ queuemanager?
What version is your WMQ jar-files?

Pretty sure you can get WMQ V7 and JMS to work with RFH, you might need to
use the WMQ native Java API instead.

Are you using WMB V6 or V6.1 brokers still or why do you need a RFH?

Check out this in the IBM Info Center for WMQ -
http://publib.boulder.ibm.com/infocenter/wmqv7/v7r0/topic/com.ibm.mq.javadoc.doc/WMQJMSClasses/com/ibm/mq/jms/JMSC.html#MQJMS_BROKER_V1
:
*JMS API Compatibility layer. This is provided solely for backwards
compatibility with provider specific JMS applications and should not be
used for new applications. *

MQJMS_BROKER_V1

public static final int *MQJMS_BROKER_V1*

*Deprecated.* This parameter can be passed to
MQConnectionFactory.setBrokerVersion(int)<http://publib.boulder.ibm.com/infocenter/wmqv7/v7r0/topic/com.ibm.mq.javadoc.doc/WMQJMSClasses/com/ibm/mq/jms/MQConnectionFactory.html#setBrokerVersion%28int%29>to
indicate that the broker will use RFH1 headers. This is required when
using the WebSphere MQ Publish/Subscribe v6 or WebSphere Business
Integration Message Broker in compatibility mode. If the WebSphere MQ queue
manager being connected to is at version 7, it is necessary to set the
connection factory's PROVIDERVERSION property to "6.0.0.0".

*See Also:*MQConnectionFactory.setBrokerVersion(int)<http://publib.boulder.ibm.com/infocenter/wmqv7/v7r0/topic/com.ibm.mq.javadoc.doc/WMQJMSClasses/com/ibm/mq/jms/MQConnectionFactory.html#setBrokerVersion%28int%29>,
Constant Field Values<http://publib.boulder.ibm.com/infocenter/wmqv7/v7r0/topic/com.ibm.mq.javadoc.doc/WMQJMSClasses/constant-values.html#com.ibm.mq.jms.JMSC.MQJMS_BROKER_V1>


/M.


2012/6/14 Ashutosh Kumar <as...@gmail.com>

> I am trying to send message from camel route to IBM mq. I need to send it
> as RFH1 header. I tried targetClient=1 but that sends as RFH2 . Also
> setBrokerVersion does not work . Setting brokerVersion is not allowed on
> com.ibm.mq.jms.MQQueueConnectionFactory .
>
> Thanks
>