|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Altering message addressing |
« View previous topic :: View next topic » |
Author |
Message
|
BBM |
Posted: Thu Feb 15, 2007 7:45 pm Post subject: Altering message addressing |
|
|
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 |
|
 |
Mr Butcher |
Posted: Thu Feb 15, 2007 10:31 pm Post subject: |
|
|
 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 |
|
 |
BBM |
Posted: Thu Feb 15, 2007 10:44 pm Post subject: |
|
|
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 |
|
 |
atulzain |
Posted: Thu Feb 15, 2007 11:26 pm Post subject: |
|
|
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 |
|
 |
Mr Butcher |
Posted: Fri Feb 16, 2007 2:28 am Post subject: |
|
|
 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 |
|
 |
RogerLacroix |
Posted: Sat Feb 17, 2007 9:12 am Post subject: |
|
|
 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 |
|
 |
|
|
 |
|
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
|
|
|
|