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 » IBM MQ Installation/Configuration Support » How to achive Process Definition using MQ Series

Post new topic  Reply to topic
 How to achive Process Definition using MQ Series « View previous topic :: View next topic » 
Author Message
hifive
PostPosted: Sun Oct 14, 2007 8:44 am    Post subject: How to achive Process Definition using MQ Series Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Sun Oct 14, 2007 12:44 pm    Post subject: Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Sun Oct 14, 2007 1:05 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
jefflowrey
PostPosted: Sun Oct 14, 2007 2:25 pm    Post subject: Reply with quote

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
View user's profile Send private message
hifive
PostPosted: Sun Oct 14, 2007 7:43 pm    Post subject: Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Sun Oct 14, 2007 11:02 pm    Post subject: Reply with quote

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
View user's profile Send private message
PeterPotkay
PostPosted: Mon Oct 15, 2007 9:53 am    Post subject: Reply with quote

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

MQSeries.net Forum Index » IBM MQ Installation/Configuration Support » How to achive Process Definition using MQ Series
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.