on 01-13-2014 2:55 PM
Hi,
We have a scenario (Proxy -> PI -> MQ) where we need to pass a custom value from the payload to MQMD.MsgID of Websphere MQ.
As per the below link, the JMS headers & Properties are mapped to MQ MQMD headers, in which I expect if the JMSMessageID ismapped with the custom value, that should be mapped to the MQMD MsgId.
http://pic.dhe.ibm.com/infocenter/wmqv7/v7r1/index.jsp?topic=%2Fcom.ibm.mq.doc%2Fjm25430_.htm
We tried setting the JMS Property MessageID using the additional parameters in the JMS Receiver adapter as below, but is not reflected in the MQMD mesage ID.
I saw few blogs mentioing that it can be done by writing a custom adapter module, but no details were given on what has to be done and which property has to be set.
Can anybody who has alreaduy done this please help / comment on it.
PS: We are using SAP PI 7.11 & MQ 7
Thanks,
Praveen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Praveen -
Not sure but i see that there is a method "setJMSMessageID" available simillar to
public void setJMSMessageID(String id) throws JMSException
JMS providers set this field when a message is sent. This method can be used to change the value for a message that has been received.
id
- the ID of the message Can you try with that?
If it doesn't work then i think you might have to write a module to set it using the above method.
Hi Hareesh,
This also does not work.
The issue is when module SendBinarytoXIJMSService is called, PI internally calls the MQPUT method with Message option defaulted to MQPMO_NEW_MSG_ID, which generates a ramdon unique Message ID and assigned it to the JMSMessageID, irrespective of whatever value you set in it.
I think the only way is to tweak the SendBinarytoXIJMSService module to let pass the custom value in the variable JMSMessageID.
Please let me know if you are aware of where I can find com.sap.aii.af.mp.jms.ejb jar / sca, as the module SendBinarytoXIJMSService should be in that package.
thanks,
Praveen
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.