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 Discussion » Help me! Services don't run ...!

Post new topic  Reply to topic
 Help me! Services don't run ...! « View previous topic :: View next topic » 
Author Message
Anhhv
PostPosted: Sun Sep 09, 2007 8:18 pm    Post subject: Help me! Services don't run ...! Reply with quote

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
View user's profile Send private message Yahoo Messenger
Vitor
PostPosted: Sun Sep 09, 2007 11:23 pm    Post subject: Reply with quote

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
View user's profile Send private message
Anhhv
PostPosted: Sun Sep 09, 2007 11:49 pm    Post subject: Reply with quote

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
View user's profile Send private message Yahoo Messenger
Vitor
PostPosted: Mon Sep 10, 2007 12:06 am    Post subject: Reply with quote

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
View user's profile Send private message
Anhhv
PostPosted: Mon Sep 10, 2007 1:01 am    Post subject: Reply with quote

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
View user's profile Send private message Yahoo Messenger
Vitor
PostPosted: Mon Sep 10, 2007 1:11 am    Post subject: Reply with quote

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
View user's profile Send private message
Anhhv
PostPosted: Mon Sep 10, 2007 1:18 am    Post subject: Reply with quote

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
View user's profile Send private message Yahoo Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General Discussion » Help me! Services don't run ...!
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.