ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ API Support » Copy Entire MQMD

Post new topic  Reply to topic
 Copy Entire MQMD « View previous topic :: View next topic » 
Author Message
elvis_gn
PostPosted: Wed Nov 23, 2005 10:06 pm    Post subject: Copy Entire MQMD Reply with quote

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
View user's profile Send private message Send e-mail
EddieA
PostPosted: Wed Nov 23, 2005 11:01 pm    Post subject: Reply with quote

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
View user's profile Send private message
elvis_gn
PostPosted: Wed Nov 23, 2005 11:06 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
EddieA
PostPosted: Thu Nov 24, 2005 12:02 am    Post subject: Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Fri Nov 25, 2005 5:55 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » Copy Entire MQMD
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.