|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Retrieved MQMD is different from the one stored in DB |
« View previous topic :: View next topic » |
Author |
Message
|
navjotkaur78 |
Posted: Mon Dec 26, 2011 2:24 am Post subject: Retrieved MQMD is different from the one stored in DB |
|
|
Apprentice
Joined: 09 Feb 2006 Posts: 31
|
We are storing MQMD in Database as BLOB.
When we retrieve, we are able to get the MQMD back with Source Queue information changed. rest of the MQMD fields are as is.
The MQMD retrieved is having the Source Queue of the flow which is issuing the select query. Rest all the fields are of the stored MQMD.
Here is Java compute node code to retrieve the MQMD from DB and storing in environment
Blob prtc_hdr_txt = rs.getBlob("MQMD_Header");
byte[] phdrByte = prtc_hdr_txt.getBytes((long) 1,(int) prtc_hdr_txt.length());
env.getRootElement().createElementAsLastChildFromBitstream(phdrByte, MbMQMD.PARSER_NAME, "", "", "", 0, 0, 0);
Any idea why this is happening. |
|
Back to top |
|
 |
mqjeff |
Posted: Mon Dec 26, 2011 8:42 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
There is no field in the MQMD that represents the source queue.
That's an additional field that is created by Broker for your assistance. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|