Author |
Message
|
Anhhv |
Posted: Sun Sep 09, 2007 8:18 pm Post subject: Help me! Services don't run ...! |
|
|
 Newbie
Joined: 07 Sep 2007 Posts: 9
|
Hi master.
When i config to put message that an application run.
(Queue manager : QM.Y)
1). create Queue to receive (name: Q.RECEIVE)
2). create Queue INIT (name: Q.INIT)
3). create process-predifinition to run an application
(name: P.RUN, application ID: C:\WINDOWS\system32\calc.exe)
4). run trigger monitor (open cmd and type a command: C:\Program Files\IBM\WebSphere MQ\bin\runmqtrm.exe -m QM.Y -q Q.INIT)
that's OK, application (calc.exe) was started.
But i want to use Sevices to run "C:\Program Files\IBM\WebSphere MQ\bin\runmqtrm.exe -m QM.Y -q Q.INIT" Instead use cmd as step 4). I create one sevice SV.RUN have properties:
- Service control : Queue manager
- Start command : C:\Program Files\IBM\WebSphere MQ\bin\runmqtrm.exe
- Start args : -m QM.Y -q Q.INIT
- Service type : command type.
if i use service that application (calc.exe) don't start.
i don't know why?
why application (calc.exe) don't start when i use services that?
thanks.
 _________________ Mr. Hoang Van Anh |
|
Back to top |
|
 |
Vitor |
Posted: Sun Sep 09, 2007 11:23 pm Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
At the risk of labouring the obvious, because the service is incorrectly set up?
Why are you running the trigger monitor under the control of the queue manager? Have you tried (for practice) running it as a Windows service.
More importantly, have you tried triggering a non-GUI application?
I assume throughout that you've cleared the queues down, reset the triggering conditions and all that good stuff. Calc (as I'm sure you realise) won't clear the queue....  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
Anhhv |
Posted: Sun Sep 09, 2007 11:49 pm Post subject: |
|
|
 Newbie
Joined: 07 Sep 2007 Posts: 9
|
Vitor wrote: |
At the risk of labouring the obvious, because the service is incorrectly set up?
Why are you running the trigger monitor under the control of the queue manager? Have you tried (for practice) running it as a Windows service.
More importantly, have you tried triggering a non-GUI application?
I assume throughout that you've cleared the queues down, reset the triggering conditions and all that good stuff. Calc (as I'm sure you realise) won't clear the queue....  |
you said "service is incorrectly set up?" i think it no problem because I read help to create service to run trigger monitor the same in book.
in step 4), if i run trigger monitor in cmd that my application run very well. but if i use service to run trigger monitor that my application didn't run
i don't know why. _________________ Mr. Hoang Van Anh |
|
Back to top |
|
 |
Vitor |
Posted: Mon Sep 10, 2007 12:06 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Anhhv wrote: |
you said "service is incorrectly set up?" i think it no problem because I read help to create service to run trigger monitor the same in book. |
I think it problem, because application doesn't run!
Anhhv wrote: |
in step 4), if i run trigger monitor in cmd that my application run very well. but if i use service to run trigger monitor that my application didn't run |
This is exactly my reasoning for a service configuration error. There's clearly no problem per se with the trigger definition because it works in foreground; my previous comments about reseting queues, etc still hold.
I'd still run it as a Windows service to see if that will work, or use a non-GUI program as a target if you want to stick with the queue manager service. I've not tried that configuration and wonder if there's no screen context for Calc to start in, hence your problem.
Failing that, go through the Event viewer & qmgr logs. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
Anhhv |
Posted: Mon Sep 10, 2007 1:01 am Post subject: |
|
|
 Newbie
Joined: 07 Sep 2007 Posts: 9
|
Vitor wrote: |
I'd still run it as a Windows service to see if that will work, or use a non-GUI program as a target if you want to stick with the queue manager service. . |
I were reseted and i try to config again but not run.
how do you solve this problem?
thanks. _________________ Mr. Hoang Van Anh |
|
Back to top |
|
 |
Vitor |
Posted: Mon Sep 10, 2007 1:11 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Anhhv wrote: |
how do you solve this problem? |
Well you could try some of my suggestions, which were intended at least to help highlight the problem area.
Or not. There are other strategies which may be equally valid. Choice is entirely yours.  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
Anhhv |
Posted: Mon Sep 10, 2007 1:18 am Post subject: |
|
|
 Newbie
Joined: 07 Sep 2007 Posts: 9
|
Vitor wrote: |
Anhhv wrote: |
how do you solve this problem? |
Well you could try some of my suggestions, which were intended at least to help highlight the problem area.
Or not. There are other strategies which may be equally valid. Choice is entirely yours.  |
ok. i'm going to try. thanks. _________________ Mr. Hoang Van Anh |
|
Back to top |
|
 |
|