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

Post new topic  Reply to topic
 Doubt on runmqdlq « View previous topic :: View next topic » 
Author Message
Gaya3
PostPosted: Wed Apr 23, 2008 10:01 pm    Post subject: Doubt on runmqdlq Reply with quote

Jedi

Joined: 12 Sep 2006
Posts: 2493
Location: Boston, US

Whats the difference between the below two rules

REASON(MQRC_Q_FULL) ACTION(RETRY) FWDQ(&GAYATHRI.MESSAGE.QUEUE) FWDQM(&GAYATHRI) RETRY(3)

http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/index.jsp?topic=/com.ibm.mq.csqzal.doc/fg17010_.htm

and

REASON(MQRC_Q_FULL) ACTION(RETRY) RETRY(3)

hope both does the same work,

for the first rule, can specify the Destination queue name and queue manager(if you know it already)

Second rule, it will get the destination queue and destination queue manager from the header. am i correct here.

Which one should good to use, if anything wrong if i use the first one.

Say if there are 100 messages in the dead letter queue
first 50 destined queue is GAYATHRI.MESSAGE.QUEUE and
the second half destined queue is GAYA.QUEUE.

Assume, if i use the first rule, does it route all the messages (100) to GAYATHRI.MESSAGE.QUEUE or just 50.


Regards
Gayathri
_________________
Regards
Gayathri
-----------------------------------------------
Do Something Before you Die
Back to top
View user's profile Send private message
AkankshA
PostPosted: Wed Apr 23, 2008 10:52 pm    Post subject: Reply with quote

Grand Master

Joined: 12 Jan 2006
Posts: 1494
Location: Singapore

Quote:
REASON(MQRC_Q_FULL) ACTION(RETRY) FWDQ(&GAYATHRI.MESSAGE.QUEUE) FWDQM(&GAYATHRI) RETRY(3)


should the action not be fwd here ?

the difference is that the second rule retries for the original destination queue and frst rule fwds to the specified queues

Quote:
(&GAYATHRI.MESSAGE.QUEUE)

not sure if u can specify it this way... i hv only used substitution for dest q n reply q
_________________
Cheers
Back to top
View user's profile Send private message Visit poster's website
Gaya3
PostPosted: Wed Apr 23, 2008 11:14 pm    Post subject: Reply with quote

Jedi

Joined: 12 Sep 2006
Posts: 2493
Location: Boston, US

just have look of the link that i have given there...

it furnish you some details

Regards
Gayathri
_________________
Regards
Gayathri
-----------------------------------------------
Do Something Before you Die
Back to top
View user's profile Send private message
AkankshA
PostPosted: Wed Apr 23, 2008 11:29 pm    Post subject: Reply with quote

Grand Master

Joined: 12 Jan 2006
Posts: 1494
Location: Singapore

chk it outttt

http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/index.jsp?topic=/com.ibm.mq.csqzal.doc/fg17010_.htm
_________________
Cheers
Back to top
View user's profile Send private message Visit poster's website
Vitor
PostPosted: Thu Apr 24, 2008 12:36 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

Gaya3 wrote:
Whats the difference between the below two rules


None - ACTION(RETRY) ignores the FWD parameters. ACTION(FWD) FWDQ(&DESTQ) is the same as ACTION(RETRY) but is less typing.

I've no idea what your point is with the link to the sample programs. You'll find the dead letter handler described here for your convienience.

If you have 2 types of message on the DLQ, to be forwarded to 2 different queue, you need more matching options.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Gaya3
PostPosted: Thu Apr 24, 2008 12:52 am    Post subject: Reply with quote

Jedi

Joined: 12 Sep 2006
Posts: 2493
Location: Boston, US

Vitor wrote:

None - ACTION(RETRY) ignores the FWD parameters. ACTION(FWD) FWDQ(&DESTQ) is the same as ACTION(RETRY) but is less typing.

So there is no difference,

ACTION(FWD) FWDQ(&DESTQ) FWDQM(&DESTQM) is it equivalent to ACTION(RETRY)

If you have 2 types of message on the DLQ, to be forwarded to 2 different queue, you need more matching options.

I agree with these.
Say: if i specify ACTION(FWD) FWDQ(&DESTQ) FWDQM(&DESTQM) does it route all message to the destination queue. though there were some different Destination queue.


Regards
Gayathri
_________________
Regards
Gayathri
-----------------------------------------------
Do Something Before you Die
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Apr 24, 2008 1:03 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

[quote="Gaya3"]
Vitor wrote:

None - ACTION(RETRY) ignores the FWD parameters. ACTION(FWD) FWDQ(&DESTQ) is the same as ACTION(RETRY) but is less typing.[/quote

So there is no difference,


Yes there is - you've specified a destination queue in your first example (which would be ignored & is not syntactically correct) which presumably you want to use.

Gaya3 wrote:
Vitor wrote:
ACTION(FWD) FWDQ(&DESTQ) FWDQM(&DESTQM) is it equivalent to ACTION(RETRY)
If you have 2 types of message on the DLQ, to be forwarded to 2 different queue, you need more matching options.


I agree with these.
Say: if i specify ACTION(FWD) FWDQ(&DESTQ) FWDQM(&DESTQM) does it route all message to the destination queue. though there were some different Destination queue.


What do you mean by the destination queue? Each message has it's own destination (and in your example there are 2)

Consult the link for more details. Or details.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
AkankshA
PostPosted: Thu Apr 24, 2008 1:13 am    Post subject: Reply with quote

Grand Master

Joined: 12 Jan 2006
Posts: 1494
Location: Singapore

Quote:
if i specify ACTION(FWD) FWDQ(&DESTQ) FWDQM(&DESTQM) does it route all message to the destination queue. though there were some different Destination queue.



ACTION (FWD)


ur msgs should be routed to actual destination queue i.e. the queue name from the DestQName field in the MQDLH structure.
_________________
Cheers
Back to top
View user's profile Send private message Visit poster's website
Gaya3
PostPosted: Thu Apr 24, 2008 1:20 am    Post subject: Reply with quote

Jedi

Joined: 12 Sep 2006
Posts: 2493
Location: Boston, US

yes, i understood.

Thanks for clearing my doubts.

so &DESTQ, &DESTQM all are important if we are using ACTION(FWD)

and as Vitor said, if i am using ACTION(RETRY) will override the usage of
ACTION(FWD) FWDQ(&DESTQ) FWDQM(&DESTQM)

Regards
Gayathri
_________________
Regards
Gayathri
-----------------------------------------------
Do Something Before you Die
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Apr 24, 2008 1:25 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

Gaya3 wrote:
and as Vitor said, if i am using ACTION(RETRY) will override the usage of
ACTION(FWD) FWDQ(&DESTQ) FWDQM(&DESTQM)


No, what I said was ACTION(RETRY) will ignore FWDQ & FWDQM.

You can't specify 2 actions for a single pattern match. Well you can, but only 1 will work.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
AkankshA
PostPosted: Thu Apr 24, 2008 1:50 am    Post subject: Reply with quote

Grand Master

Joined: 12 Jan 2006
Posts: 1494
Location: Singapore

ACTION(FWD) FWDQ(&DESTQ) FWDQM(&DESTQM)

and

ACTION(RETRY) RETRY(1)

does the same job for u....


_________________
Cheers
Back to top
View user's profile Send private message Visit poster's website
fjb_saper
PostPosted: Thu Apr 24, 2008 9:49 am    Post subject: Reply with quote

Grand High Poobah

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

The big difference between
action(retry)

and

action(fwd) fwdq(&destq)

is the non expressed option as in

action(fwd) fwdq(&destq) header(yes|no)

retry implies header(no).

In other words you can forward the message somewhere but keed the DLQ header....

Enjoy
_________________
MQ & Broker admin
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 » General IBM MQ Support » Doubt on 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.