|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Acknowledge To Queue |
« View previous topic :: View next topic » |
Author |
Message
|
girishmallampalli |
Posted: Sun Oct 21, 2007 9:56 am Post subject: Acknowledge To Queue |
|
|
Newbie
Joined: 21 Oct 2007 Posts: 2
|
Hello Friends,
I am bit new to the Message Queue. My requirement was to read the message from the Queue and write it to a text file. Also i need to Acknoledge another Queue ones i read message from the current queue.
The Acknoledgement message has a certain message format. Can any one please help me with how should i go abt this.
I am Reading message from Queue B and ones i start reading the messages i also need to acknoledge Queue A. The acknoledgemnt message has a certain format which is the actual message with attached success or Failure text in the end.
I could manage reading the queue and writing it to a file... but am stuck with the acknoledgement.
Please guys if any oncan e help me with the logic... |
|
Back to top |
|
 |
bower5932 |
Posted: Sun Oct 21, 2007 11:35 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
It sounds like all you need to do is create a new message that is based on the old message along with your processing status. You can then put this message onto the reply queue.
Depending on what 'acknowledge' means, you might be able to get away with the reporting options that WMQ supports automatically.
You might want to go look at some of the samples that are supplied (amqsreq0.c, amqsecha.c). |
|
Back to top |
|
 |
Vitor |
Posted: Sun Oct 21, 2007 11:36 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Writing a reply is like reading from a queue but backwards!
Seriously, all you need to do is assemble the message you require and do a put, in the same way you do a get and read the buffer. This is straughtforward programming.
If the sending application is well behaved, it will have sent the message as a request and set the reply to queue and queue manager for you. Of course, if it was that well behaved it would have requested the queue manager to send an acknowledgement automatically, even though this would of course be in a different format to that which you're currently using.
You'll find the request/reply message model described in the Intercommunication manual, and all the information you need to impliment it in the Application Programming Guide / Reference manuals. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
girishmallampalli |
Posted: Sun Oct 21, 2007 1:16 pm Post subject: |
|
|
Newbie
Joined: 21 Oct 2007 Posts: 2
|
can you please provide me the link where i can find the reference manual or the sample code to do the same |
|
Back to top |
|
 |
Vitor |
Posted: Sun Oct 21, 2007 1:43 pm Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
girishmallampalli wrote: |
can you please provide me the link where i can find the reference manual or the sample code to do the same |
You'll find links to the Info Centre peppered through this board (the search function is your friend), or go onto the IBM site and search for the WMQ library.
Sample code comes with the product, is on the IBM site and Roger has assembled some useful stuff on the Capitalware site. Again, the search function is your friend. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
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
|
|
|
|