Posted: Fri May 11, 2007 7:40 am Post subject: Strange behaviour when working with correlation Id
Novice
Joined: 17 Feb 2006 Posts: 14 Location: London
Hi
I assume someone has try this before & can help.
I have two scencario
A When I have a correlationId & want to specify a it as corelation ID for a message
B When I don't have a correlation & want to copy message id as correlation id
So my code looks like
// if supplied set message Id
if (correlationId != null) {
message.report = MQC.MQRO_PASS_CORREL_ID;
message.messageType = MQC.MQMT_REPORT;
message..correlationId = correlationId;
}else{
message.report = MQC.MQRO_COPY_MSG_ID_TO_CORREL_ID;
message.messageType = MQC.MQMT_REPORT;
}
In case A , my message properties indicate a correlation Id as set & report properties are as expected: Pass correlation identifier
However in case B
Message property return with message Correaltion Id NOT set & following report properties:
New message identifier
Copy message identifier to correlation identifier
Place message on dead-letter queue
None
Where is would have expect just to see Copy message identifier to correlation identifier
From java doc file I see the four report options have a value of zero..
Is these some is consistencies here, please advise
I am using WMQ6.0
Rgds
Ed _________________ Thank you for your time
Ed
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum