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 » Altering message addressing

Post new topic  Reply to topic
 Altering message addressing « View previous topic :: View next topic » 
Author Message
BBM
PostPosted: Thu Feb 15, 2007 7:45 pm    Post subject: Altering message addressing Reply with quote

Master

Joined: 10 Nov 2005
Posts: 217
Location: London, UK

Hi,

We had a rather irritating incident recently where a script to redirect some remote queue definitions had been run inadvertently.

The result was that 100 messages ended up on the wrong transmission queue with the incorrect addressing details.

Now, although all the messages were on the same transmission queue, they were destined for three seperate remote queues. i.e. the messages on the xmitq had come from three different RQDs.

My task was to take the messages from the transmission queue, remove their addressing information and place them on the correct three RQDs so that they would be delivered correctly. This meant manually examining each message stripping its XMITQ header and placing the message on the correct RQD.

We found a workaround in the end, to have the messages resent, so we did not move the messages in the end.

My question is, what tool or procedure should I have used? I tried using RFHUTIL and Qpasa both of which didn't seem to allow us to complete the task quickly.

The only way I found to do it was to save each message to a seperate file in RFHUTIL, then load it back to the new queue specifying RFHUTIL to strip the header.

Any ideas?

Thanks

BBM
Back to top
View user's profile Send private message
Mr Butcher
PostPosted: Thu Feb 15, 2007 10:31 pm    Post subject: Reply with quote

Padawan

Joined: 23 May 2005
Posts: 1716

1. the messages are on a xmitq
2. define the related channel with 1 byte maxmessagelength
3. start the channel
4. your messages get moved by the mca from the xmitq to the dead letter queue because they can not be sent over the 1 byte channel (make sure the dlq is defined in the queuemanager)
5. use the dead letter queue handler to change the destination, e.g.
DESTQ(wrongqueue1) ACTION(FWD) FWDQUEUE(correctqueue1)

Check the system administration guide for the rule table syntax of the dlq handler.

MO71 supportpac does have a move / copy function but i am not sure whether it can be of help because afaik it woll not change the mit header. you may verify that yourself
_________________
Regards, Butcher
Back to top
View user's profile Send private message
BBM
PostPosted: Thu Feb 15, 2007 10:44 pm    Post subject: Reply with quote

Master

Joined: 10 Nov 2005
Posts: 217
Location: London, UK

Mr Butcher,

Wow - I like that solution, there's nothing like a bit of lateral thinking..

And this would work in terms of redirecting specific messages also..

Now, I'd better go and remind myself how the DLQ handler works again!

cheers

BBM
Back to top
View user's profile Send private message
atulzain
PostPosted: Thu Feb 15, 2007 11:26 pm    Post subject: Reply with quote

Newbie

Joined: 12 Jan 2007
Posts: 3

In addition to above Quesion , I would like to ask ...

is there is any MQSC command or method by which i can move the msgs from One local Q to another Local Q in same QManager in WinNT
Back to top
View user's profile Send private message Yahoo Messenger
Mr Butcher
PostPosted: Fri Feb 16, 2007 2:28 am    Post subject: Reply with quote

Padawan

Joined: 23 May 2005
Posts: 1716

sorry for asking the obvious, but did you rtfm? especially the mqsc command reference?

anyway, there is a move command.ö you can also use MO781 supportpac, which helps you to move or copy messages, even between queuemanagers
_________________
Regards, Butcher
Back to top
View user's profile Send private message
RogerLacroix
PostPosted: Sat Feb 17, 2007 9:12 am    Post subject: Reply with quote

Jedi Knight

Joined: 15 May 2001
Posts: 3264
Location: London, ON Canada

Mr Butcher wrote:
1. the messages are on a xmitq
2. define the related channel with 1 byte maxmessagelength
3. start the channel
4. your messages get moved by the mca from the xmitq to the dead letter queue because they can not be sent over the 1 byte channel (make sure the dlq is defined in the queuemanager)
5. use the dead letter queue handler to change the destination, e.g.
DESTQ(wrongqueue1) ACTION(FWD) FWDQUEUE(correctqueue1)

Or # 5 could be:

5. Use MQ Visual Edit's 'forward' function and check the 'Remove DLH' checkbox.


atulzain wrote:
is there is any MQSC command or method by which i can move the msgs from One local Q to another Local Q in same QManager in WinNT

Have you used the search button (upper right hand corner). There are a couple of SupportPacs that can do that along with Capitalware's MQ Visual Edit tool.

Regards,
Roger Lacroix
Capitalware Inc.
_________________
Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » Altering message addressing
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.