Author |
Message
|
DanielSonFocus |
Posted: Tue Jul 19, 2005 9:22 am Post subject: Another Question about Client Trigger Monitor |
|
|
 Apprentice
Joined: 05 Jun 2005 Posts: 35 Location: Louisville, Kentucky
|
Hi,
im running "runmqtmc" on an AIX box and it's pointing to a QM/INIT_Q on a remote machine.. runmqtmc works fine and my app is being triggered correctly. My question is, how do i ensure that runmqtmc will be running all the time. I'm thinking i'll write a script that keeps grepping for runmqtmc in "ps -ef" and start it up again in case it comes down... are there any best practices that address the issue of runmqtmc going down? |
|
Back to top |
|
 |
zpat |
Posted: Tue Jul 19, 2005 11:30 pm Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
I don't know about UNIX, on Windows I have used a BAT file that runs the client trigger monitor in a loop - so if it ends it starts again. I put a 30 second delay in the loop so that it would not restart too quickly (as the queue manager might be down).
However IBM more recently made the Windows client trigger monitor available as a Windows service, and there are various ways to check that services are running. |
|
Back to top |
|
 |
wschutz |
Posted: Wed Jul 20, 2005 2:50 am Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
It depends how important it is for the applications be to triggered in a timely fashion. If you can afford for the trigger monitor to be down for up to five minutes, I'd setup a cron job that ran every five minutes and check (via ps) that the trigger monitor is running.
This way, you don't have to worry about your "checked' job itself going down. (I suppose you could have a continuously running checker job and then have a cron job that runs to check that the checker job is running ) _________________ -wayne |
|
Back to top |
|
 |
elvis_gn |
Posted: Wed Jul 20, 2005 3:54 am Post subject: |
|
|
 Padawan
Joined: 08 Oct 2004 Posts: 1905 Location: Dubai
|
I have never worked on AIX so can some one clarify this doubt:
In windows we can set a trigger monitor which will reun the moment the queue manager is started...and will run until QM stops.
Is this not possible in AIX...or am i not seeing the whole picture here ?? |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed Jul 20, 2005 4:05 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
elvis_gn wrote: |
I have never worked on AIX so can some one clarify this doubt:
In windows we can set a trigger monitor which will reun the moment the queue manager is started...and will run until QM stops.
Is this not possible in AIX... |
You can configure custom services with MQ in Unix, I believe. If so, it would be possible to configure a custom service that ran runmqtrm in sync with the QM.
elvis_gn wrote: |
or am i not seeing the whole picture here ?? |
Yes, you're missing the fact that he's using runmqtmc and said "Client". So the QM is on another machine... very hard to coordinate services across machines. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
DanielSonFocus |
Posted: Wed Jul 20, 2005 7:54 am Post subject: |
|
|
 Apprentice
Joined: 05 Jun 2005 Posts: 35 Location: Louisville, Kentucky
|
Thanks for all the input.. i think Wayne's solution makes the most sense. ill run a cron job that checks if "runmqtmc" is running, if not it will restart the process. |
|
Back to top |
|
 |
|