Problem with setting MQ Message ID when putting MQ Messages
591864Jun 18 2008 — edited Jun 18 2008Hi
I have a problem with setting a MQ Message ID when putting messages to the MQ Server.
I have a BPEL flow that does a simple Put operation to a Queue on my MQ Server. I want to dynamically give that message a MQ Message ID that I have generated on my own. I try to do this by instanciating a header variable named 'header' and then setting the message id in this way:
<copy>
<from variable="myMQMessageId"/>
<to variable="header" part="outboundHeader" query="/ns2:MQOutboundHeaderAndProperties/ns2:MQOutboundHeader/ns2:MsgID"/>
</copy>
...but it doesn't seem to work! When I look at the message via MQ Explorer a get another message id that seems to be generated by the MQ Server (or perhaps the MQ adapter).
Has anyone else excperienced this?
In the same header variable I am able to set other header attributes like QueueName, etc and that works.
Is there some other attribute that I must set in order to get the adapter to accept my own message id.
Thankful for help
//Kalle Viklund