Author |
Message
|
hifive |
Posted: Sun Oct 14, 2007 8:44 am Post subject: How to achive Process Definition using MQ Series |
|
|
Acolyte
Joined: 06 May 2006 Posts: 52
|
I have a two queues A & B
I have defined A Queue - with Triggering details
Trigger Control - On
Trigger Type - First
Trigger Depth - 1
Inititation Queue - B
ProcessName = X
I have defined Process NAme X
Name : X
Application Type - ?????
Application ID - ??????
I would like to know if I want to launch NOTEPAD.exe , when i put a message to B queue ? How to acheve this , given the above details
Thx |
|
Back to top |
|
 |
Vitor |
Posted: Sun Oct 14, 2007 12:44 pm Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
B is being used as initiation queue - it takes an init message from the queue manager _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
fjb_saper |
Posted: Sun Oct 14, 2007 1:05 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
hifive wrote: |
I would like to know if I want to launch NOTEPAD.exe , when i put a message to B queue ? How to acheve this , given the above details |
This is a bad bad idea
Essentially you are trying to launch a Gui program (synchronous) from a background process...that is asynchronous... And who will be there to do anything with the GUI in the middle of the night when your process gets triggered? And how will your process work if the user is not logged in?
Think about it. And if you need to launch notepad you need a workflow application... not MQ triggering...  _________________ MQ & Broker admin |
|
Back to top |
|
 |
jefflowrey |
Posted: Sun Oct 14, 2007 2:25 pm Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
All of that said, you just set the Application Type to the platform that the trigger monitor will run on, and the application ID to the full path to the application binary. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
hifive |
Posted: Sun Oct 14, 2007 7:43 pm Post subject: |
|
|
Acolyte
Joined: 06 May 2006 Posts: 52
|
[quote="jefflowrey"]All of that said, you just set the Application Type to the platform that the [i]trigger monitor[/i] will run on, and the application ID to the [i]full path to the application binary[/i].[/quote]
Requirements that i had defined in my message is just for a test and i wanted to know how to use the process definition and trigger in MQ Q's
If i have to specifiy the application id - what would be ? and can i just type the app id asc c:\winnt\system32\notepad.exe or how do i find out the app id for this app ..? |
|
Back to top |
|
 |
Vitor |
Posted: Sun Oct 14, 2007 11:02 pm Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
hifive wrote: |
[can i just type the app id asc c:\winnt\system32\notepad.exe |
As jefflowrey said, it's the full path of the application binary. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
PeterPotkay |
Posted: Mon Oct 15, 2007 9:53 am Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
ideally prefixed with "START", i.e.:
START C:\myApp\myprocess.exe _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
|