|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
DLQ Behaviour When DLQ Handler is being triggered ! |
« View previous topic :: View next topic » |
Author |
Message
|
exerk |
Posted: Tue Nov 22, 2011 6:10 am Post subject: |
|
|
Jedi Council
Joined: 02 Nov 2006 Posts: 6339
|
shashivarungupta wrote: |
I tried to do this way i.e. invoking dlq handler as server service object.(but for testing purpose I kept the control 'manual')
DEFINE SERVICE('dlqhandler') control(manual) servtype(server) descr('dlqhandler as server service') startcmd(runmqdlq) startarg('C:\Program Files\IBM\WebSphere MQ\bin\RULETEST.RUL') stdout('C:\varun\WMQStuff\Log.txt') stderr('C:\varun\WMQStuff\Err.txt')
where RULETEST.RUL is rule table as an argument to dlqhandler process which contains(I'm testing it on Windows, in rule table has 3rd line as blank line) :
Code: |
INPUTQ('DEADQ') INPUTQM('RTEST') RETRYINT(45) WAIT(YES)
REASON(MQRC_Q_FULL) ACTION(FWD) FWDQ(DLQX) FWDQM(RTEST)
|
When I start this service, it gets started successfully (get logged in qmgr error log) and Ends (get logged in qmgr error log).
Standard Error text file contains (even when I made the Qmgr as Default queue manager on my machine & it has got default dlq 'DEADQ'):
Code: |
11/21/2011 19:09:28 AMQ8741: Unable to connect to queue manager.
11/21/2011 19:09:28 AMQ8709: Dead-letter queue handler ending.
|
another scenario:
when I mention dlq name and qmgr in start argument then I get error "input in flex scanner failed" in standard error text file.
startarg(DEADQ RTEST 'C:\Program Files\IBM\WebSphere MQ\bin\RULETEST.RUL')
Please suggest ! |
In the first instance, all you are passing as a start command is the rules file name, and how many inputs does runmqdlq expect as a minimum, when using stdin? In the second instance, why have you quoted the path and rules file name? Did you not study what zpat had provided you? Did you not experiment to see what changing a few things might do? _________________ It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys. |
|
Back to top |
|
|
shashivarungupta |
Posted: Tue Nov 22, 2011 7:36 am Post subject: |
|
|
Grand Master
Joined: 24 Feb 2009 Posts: 1343 Location: Floating in space on a round rock.
|
exerk wrote: |
In the first instance, all you are passing as a start command is the rules file name, and how many inputs does runmqdlq expect as a minimum, when using stdin?
In the second instance, why have you quoted the path and rules file name? Did you not study what zpat had provided you? Did you not experiment to see what changing a few things might do? |
In the first instance start command has runmqdlq not the rule file (which had dlq and qmgr in it) but finally thing which worked for me when I passed queuename and qmgr as separate arguments to dlq handler.
Total four arguments I used for Qname, Qmgr, < , RuleFile.
In the seconds instance, I have experimented a lot. And hence.... my test has now worked successfully !!
Thanks _________________ *Life will beat you down, you need to decide to fight back or leave it. |
|
Back to top |
|
|
exerk |
Posted: Tue Nov 22, 2011 7:40 am Post subject: |
|
|
Jedi Council
Joined: 02 Nov 2006 Posts: 6339
|
shashivarungupta wrote: |
exerk wrote: |
In the first instance, all you are passing as a start command is the rules file name, and how many inputs does runmqdlq expect as a minimum, when using stdin?
In the second instance, why have you quoted the path and rules file name? Did you not study what zpat had provided you? Did you not experiment to see what changing a few things might do? |
In the first instance start command has runmqdlq not the rule file (which had dlq and qmgr in it) but finally thing which worked for me when I passed queuename and qmgr as separate arguments to dlq handler.
Total four arguments I used for Qname, Qmgr, < , RuleFile.
In the seconds instance, I have experimented a lot. And hence.... my test has now worked successfully !!
Thanks |
Doh! I meant startarg - honest!
And for the benefit of future readers, what was your solution? _________________ It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys. |
|
Back to top |
|
|
shashivarungupta |
Posted: Tue Nov 22, 2011 7:53 am Post subject: |
|
|
Grand Master
Joined: 24 Feb 2009 Posts: 1343 Location: Floating in space on a round rock.
|
exerk wrote: |
Doh! I meant startarg - honest! |
I believe you !!
exerk wrote: |
..what was your solution? |
simply have the authorization in place for user MUSR_MQADMIN (on windows) to read+execute the rule table, the .bat file and over server service object.
Correctly pass on the arguments to runmqdlq.
Also refer
here
{Avoid to have very long absolute path names which contains spaces ' ' in folder names., am not sure whether it would affect your implementation or not on other platforms but it affect mine on windows.}
Thanks _________________ *Life will beat you down, you need to decide to fight back or leave it. |
|
Back to top |
|
|
|
|
|
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
|
|
|
|