|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Urgent One |
« View previous topic :: View next topic » |
Author |
Message
|
Priya |
Posted: Thu Mar 21, 2002 5:39 pm Post subject: |
|
|
Apprentice
Joined: 20 Mar 2002 Posts: 26
|
Hi
There is an Adapter program which takes the Request XML message from the Input Queue of the Queue Manager and puts the reply XML message back to the out put Queue of the same Queue Manager. Adapter program does not need to run all the time. So I guess I have to do the following…
I have to write a GetMessage Application which retrieves the message from the input queue and send it to the Adapter . How GetMessage Application will get called automatically (from the Adapter or by trigger ?).
Thanks
Priya |
|
Back to top |
|
 |
StefanSievert |
Posted: Thu Mar 21, 2002 6:35 pm Post subject: |
|
|
 Partisan
Joined: 28 Oct 2001 Posts: 333 Location: San Francisco
|
Hi,
why don't you just trigger the adapter program when a message arrives on your queue? See the application programming guide for a detailed explanation of triggering, if you need more info.
Hope that helps,
Stefan
_________________ Stefan Sievert
IBM Certified * WebSphere MQ |
|
Back to top |
|
 |
Priya |
Posted: Fri Mar 22, 2002 5:12 am Post subject: |
|
|
Apprentice
Joined: 20 Mar 2002 Posts: 26
|
Thanks for you reply.
If we trigger the Adapter program, Adapter program should call the 'GetMessage' application to retrieve the XML message from the queue. Am I right?
Please help me out.
Thanks
Priya |
|
Back to top |
|
 |
StefanSievert |
Posted: Fri Mar 22, 2002 12:25 pm Post subject: |
|
|
 Partisan
Joined: 28 Oct 2001 Posts: 333 Location: San Francisco
|
Priya,
you wrote
Quote: |
On 2002-03-21 17:39, Priya wrote:
There is an Adapter program which takes the Request XML message from the Input Queue of the Queue Manager and puts the reply XML message back to the out put Queue of the same Queue Manager.
|
I am a little confused about what that actually means. I have read it so as your 'adapter program' connects to the queue manager, opens the queue, gets XML the message, processes it and then puts the reply message to another queue. And that's a perfectly valid model for an application servicing requests off a queue.
Now, if it is like I describe, why would you want to have a separate 'GetMessage' application, what do you mean by it?
Please clarify your scenario, what programs you already have and what they do so we can better understand and help you. Also, please mention programming languages, operating system, MQ version+CSD levels, if you have specific error situations.
HTH,
Stefan
_________________
Stefan Sievert
IBM Certified * MQSeries
[ This Message was edited by: StefanSievert on 2002-03-22 12:25 ] |
|
Back to top |
|
 |
Priya |
Posted: Sat Mar 23, 2002 2:29 pm Post subject: |
|
|
Apprentice
Joined: 20 Mar 2002 Posts: 26
|
Yeah.. You are right. There is a small change in my previous explanation.
There is a program X, which retrieves the message from the queue and call adapter program, processes the message and put the reply back to another queue. Which is a good design, (i) Queue Manager triggers the program X every time message arrives on the queue – so multiple instance of the program will be running if the queue receives more messages (ii) the Program X will be running all the time waiting for the message in the queue. Once it gets the message, process it and put the message back to another queue and retrieve the next message…
Please help me out...
Thanks
Priya |
|
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
|
|
|
|