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 » runmqdlq

Post new topic  Reply to topic
 runmqdlq « View previous topic :: View next topic » 
Author Message
mq_crazy
PostPosted: Wed Apr 27, 2005 1:27 pm    Post subject: runmqdlq Reply with quote

Master

Joined: 30 Jun 2004
Posts: 295

I am trying to test dlq handler with a sample rules file i created. When i run its giving syntax error at ....action, but i don't see anything wrong with it. Here is my file dlq.rul

inputq('SYSTEM.DEAD.LETTER.QUEUE') +
inputqm('TEST_QM') wait(no) +
action(fwd) +
destq('LOCAL.QUEUE1') +
fwdq('LOCAL.QUEUE') +
fwdqm('TEST_QM') header(no)

I am running MQ 5.3 CSD08 on xp.

My intention is if the message is for LOCAL.QUEUE1 it should go to LOCAL.QUEUE as LOCAL.QUEUE1 doesn't exist.

I am running it as runmqdlq SYSTEM.DEAD.LETTER.QUEUE TEST_QM < dlq.rul
Back to top
View user's profile Send private message
PeterPotkay
PostPosted: Wed Apr 27, 2005 3:29 pm    Post subject: Re: runmqdlq Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7722

mq_crazy wrote:

My intention is if the message is for LOCAL.QUEUE1 it should go to LOCAL.QUEUE as LOCAL.QUEUE1 doesn't exist.

Then create an Alias Queue for it and then you won't have to deal with messages going to the DLQ.
_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
mq_crazy
PostPosted: Wed Apr 27, 2005 4:08 pm    Post subject: Reply with quote

Master

Joined: 30 Jun 2004
Posts: 295

I can do that, but i am trying to test that way. I don't why it doesn't work.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Wed Apr 27, 2005 7:28 pm    Post subject: Re: runmqdlq Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

mq_crazy wrote:
.....
inputq('SYSTEM.DEAD.LETTER.QUEUE') +
inputqm('TEST_QM') wait(no) +
action(fwd) +
destq('LOCAL.QUEUE1') +
fwdq('LOCAL.QUEUE') +
fwdqm('TEST_QM') header(no)
....


Easy to fix .
Do a visual inspection:
Only allowed in 1st line: inputq inputqm wait
So way concatenate the rest to your first line ?

it should be
Code:
inputq('SYSTEM.DEAD.LETTER.QUEUE') +
inputqm('TEST_QM') wait(no)

* end of line 1 start of line 2

destq('LOCAL.QUEUE1') +
action(fwd) +
fwdq('LOCAL.QUEUE') +
fwdqm('TEST_QM') header(no)
Back to top
View user's profile Send private message Send e-mail
mq_crazy
PostPosted: Thu Apr 28, 2005 5:54 am    Post subject: Reply with quote

Master

Joined: 30 Jun 2004
Posts: 295

I tried like that, now i get syntax error in line 5, i don't know where it is having problem.
Back to top
View user's profile Send private message
mq_crazy
PostPosted: Thu Apr 28, 2005 9:26 am    Post subject: Reply with quote

Master

Joined: 30 Jun 2004
Posts: 295

Any help on this would be appreciated
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu Apr 28, 2005 11:42 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

make the last line a blank line
Back to top
View user's profile Send private message Send e-mail
mq_crazy
PostPosted: Thu Apr 28, 2005 12:11 pm    Post subject: Reply with quote

Master

Joined: 30 Jun 2004
Posts: 295

It worked with the blank. I don't know why its so particular about the blank line. Anyway thanks a lot fjp for your help!!!
Back to top
View user's profile Send private message
mq_crazy
PostPosted: Fri Apr 29, 2005 6:50 am    Post subject: Reply with quote

Master

Joined: 30 Jun 2004
Posts: 295

One last question, might be silly. The runmqdlq program doesn't keep running in the background? i can see once it processes it shuts down. I can't keep it running whenever a message comes in dead letter?
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Fri Apr 29, 2005 7:04 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

mq_crazy wrote:
One last question, might be silly. The runmqdlq program doesn't keep running in the background? i can see once it processes it shuts down. I can't keep it running whenever a message comes in dead letter?


You don't want to keep it running.

Do a search on DLQH for more indepth discussion of the risks of doing this.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
mq_crazy
PostPosted: Fri Apr 29, 2005 7:06 am    Post subject: Reply with quote

Master

Joined: 30 Jun 2004
Posts: 295

Thanks Jeff.
Back to top
View user's profile Send private message
PeterPotkay
PostPosted: Fri Apr 29, 2005 9:30 am    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7722

There is a whooooooole chapter on this subject in the System Admin Guide. Please check it out.
_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Fri Apr 29, 2005 10:49 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

And after that if you still need special rules to run on a permanent basis
(the ones that have a forward in the action)
try running the DLQ handler with wait(yes) and an & as last parameter.

To stop it just get disable the DLQ.

Enjoy
Back to top
View user's profile Send private message Send e-mail
mq_crazy
PostPosted: Fri Apr 29, 2005 2:59 pm    Post subject: Reply with quote

Master

Joined: 30 Jun 2004
Posts: 295

Thanks fjb for the info.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

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