|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
trigger different processes from the application program |
« View previous topic :: View next topic » |
Author |
Message
|
srinivasmr |
Posted: Sun Aug 21, 2005 9:10 pm Post subject: trigger different processes from the application program |
|
|
Newbie
Joined: 08 Aug 2005 Posts: 5
|
hi
im workin on C/LINUX pltform.my idea is to use a single queue for multiple clients for a single server.so i went on to create dynamic queues.
my program reads the msg and deceides to which client the msg shld be sent. i want to know how to set the APPLICID(that defines a particular client ) for all the clients from the aplication prgrm .
plz help me out.
rgds
srinivas |
|
Back to top |
|
 |
Mr Butcher |
Posted: Mon Aug 22, 2005 12:54 am Post subject: |
|
|
 Padawan
Joined: 23 May 2005 Posts: 1716
|
i do not understand.
if you want to use a single queue, why do you have to use dynamic queues?
applicid is part of the process definition, not the queue. do you want to trigger the dynamic created queues?
maybe you should tell more detailes about your application design _________________ Regards, Butcher |
|
Back to top |
|
 |
srinivasmr |
Posted: Mon Aug 22, 2005 1:22 am Post subject: triggering different process frm the application prgm |
|
|
Newbie
Joined: 08 Aug 2005 Posts: 5
|
here is my overall design
i hav two servers sv1 & sv2 .sv2 has n clients.
sv2 reads the msg from sv1 .
depending on the msg sv2 has to route it to the corresponding client.
iin my case sv2 has to trigger a application inthe corresponding client.
in order to use the resources effectively instead of creating queues for each cliient i
create a single dynamic queue when sv2 has to trigger a particular client(out of n clients) application .
my questiion is how to refer to that particular client while triggering frm my application prgm?
if thers no solution for this can u plz suggest a method to use resources efectively. |
|
Back to top |
|
 |
jefflowrey |
Posted: Mon Aug 22, 2005 3:13 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
So, you want the client application to be triggered? With information about a new dynamic queue that the client application doesn't know about already?
Most people solve this problem the other way around, as a request/reply process. The client application starts up, creates the dynamic queue, and sends that in the Reply To Queue Field of a request, and the server program responds to that queue based on the field of the message.
But you could do it "backwards" - but you will have to use a fake kind of triggering. Start a trigger monitor on an initq, but do not enable the "destination" queue for triggering - then manually create trigger messages (that contain all the information in MQTMC/MQTMC structure). Then the trigger monitor will launch whatever program is in the MQTMC/MQTMC2 structure with whatever parameters you want - the dynamic queue name would be one.
But then the "server" program has to know what the client program is. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|