|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Copy Entire MQMD |
« View previous topic :: View next topic » |
Author |
Message
|
elvis_gn |
Posted: Wed Nov 23, 2005 10:06 pm Post subject: Copy Entire MQMD |
|
|
 Padawan
Joined: 08 Oct 2004 Posts: 1905 Location: Dubai
|
Hi,
Could someone tell me if there exists an API to copy the entire MQMD at one shot instead of doing it one by one....
Thanks. |
|
Back to top |
|
 |
EddieA |
Posted: Wed Nov 23, 2005 11:01 pm Post subject: |
|
|
 Jedi
Joined: 28 Jun 2001 Posts: 2453 Location: Los Angeles
|
Depends on the language. In something like C/Cobol/Assembler/others ??, the MQMD is just an area in storage, that's populated after you've done the GET. That should be easy enough to copy.
But why. What are you trying to achieve.
Cheers, _________________ Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0 |
|
Back to top |
|
 |
elvis_gn |
Posted: Wed Nov 23, 2005 11:06 pm Post subject: |
|
|
 Padawan
Joined: 08 Oct 2004 Posts: 1905 Location: Dubai
|
Hi EddieA,
Thanks for the reply,
I'm trying to copy the Entire message which lies in my Failure Queue to a file....For this the requirement is that, that I copy the entire MQMD...
By the way i'm using Java.
Thnaks. |
|
Back to top |
|
 |
EddieA |
Posted: Thu Nov 24, 2005 12:02 am Post subject: |
|
|
 Jedi
Joined: 28 Jun 2001 Posts: 2453 Location: Los Angeles
|
With Java, you do have access to all the fields that make up the MQMD, but not as a single object.
Cheers, _________________ Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0 |
|
Back to top |
|
 |
fjb_saper |
Posted: Fri Nov 25, 2005 5:55 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
elvis_gn wrote: |
Hi EddieA,
Thanks for the reply,
I'm trying to copy the Entire message which lies in my Failure Queue to a file....For this the requirement is that, that I copy the entire MQMD...
By the way i'm using Java.
Thnaks. |
Remember that the Message object has all this and is serializable!
There should be no problem to putting the Message object to the file.
The only trouble is that you will have to read the Message object from an ObjectInputStream (FileInputStream) in order to get at any information on the message, header or payload....
Enjoy  |
|
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
|
|
|
|