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 » General IBM MQ Support » How to copy a message and paste it back into queue

Post new topic  Reply to topic
 How to copy a message and paste it back into queue « View previous topic :: View next topic » 
Author Message
ucbus1
PostPosted: Fri May 17, 2002 4:30 am    Post subject: How to copy a message and paste it back into queue Reply with quote

Knight

Joined: 30 Jan 2002
Posts: 560

Hello Everybody,
I am would like to to copy a message from a queue to text file using MQGET and want to clear the queue. After done with my processing(Not related to the message..), I would like to read the message from the file and would like to put the message back to the queue. But I do not want the information like PUT/DATE TIME and USERID and FORMAT etc.. options exactly same as the original message which I have received thru MQGET, that way nobody should notice any difference with the message.
I am using JAVA to do this.
Can somebody guide me how I can get the same parameters as the original message.
Thanks
Back to top
View user's profile Send private message Send e-mail
kirani
PostPosted: Fri May 17, 2002 2:42 pm    Post subject: Reply with quote

Jedi Knight

Joined: 05 Sep 2001
Posts: 3779
Location: Torrance, CA, USA

Are you writing complete message (including header information) in the file? If so, you may set the same values for each field in MQMD Header while putting back the message on the queue.
_________________
Kiran


IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries

Back to top
View user's profile Send private message Visit poster's website
kingsley
PostPosted: Fri May 17, 2002 10:03 pm    Post subject: Identity Context Reply with quote

Disciple

Joined: 30 Sep 2001
Posts: 175
Location: Hursley

Hi

Use Identity Context so that no one can find that. But you should be having that permission to do.

USe MQOO_PASS_ALL_CONTEXT in the open call and MQPMO_PASS_ALL_CONTEXT in the put message option.

Read Application Programming Guide for this.
Bye
kalyan
Back to top
View user's profile Send private message Visit poster's website
bduncan
PostPosted: Sun May 19, 2002 4:45 pm    Post subject: Reply with quote

Padawan

Joined: 11 Apr 2001
Posts: 1554
Location: Silicon Valley

Here's another question: perhaps you don't need to do this at all. Instead of physically removing the message from the queue, why not just use the browse option on your MQGETs, such that you get all the information contained within the message (along with the header) and you can do whatever processing you require. Programmatically increase the cursor one by one to browse each message on the queue in FIFO order until you come to the end. Once you get the 2030 error, you know you've processed everything, and it's still there on the queue for you. Perhaps this may not work in your particular situation, but there's probably some other tricks you can do in order to achieve the required effect without actually having to replace messages on the queue.
_________________
Brandon Duncan
IBM Certified MQSeries Specialist
MQSeries.net forum moderator
Back to top
View user's profile Send private message Visit poster's website AIM Address
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » How to copy a message and paste it back into queue
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.