|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
MQ Series Listener program in COBOL |
« View previous topic :: View next topic » |
Author |
Message
|
babu_murugesan |
Posted: Sat Nov 11, 2006 8:15 am Post subject: MQ Series Listener program in COBOL |
|
|
Novice
Joined: 11 Nov 2006 Posts: 19
|
Hi,
We are tryiing to implement SOA in the current system. Front end is .NET, Middleware is MQSeries and the database is available in the maninframe side.
When a new reqeust comes from the client, MQ Series triggers a Dispatcher program which reads the message from the request queue and starts a new transaction depends upon the message received. I have done a design for this. For each message , the same Dispatcher program would be called.
i.e same copy of the proram used.
My question is,
If the Dispatcher programs failed before getting the message, the message will be in the queue and when next message comes if the Dispatcher program tries to pick up the message, it will pick up the first message instead of second message.
How do i need to handle this unread message in the Dispatcher program.
Anyway we would like to move all unread messages into the Dead Letter Queue. But how do you this process?
Please let me know.
Thanks,
Babu M |
|
Back to top |
|
 |
wschutz |
Posted: Sat Nov 11, 2006 8:22 am Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
Read up on "backout count" (MQMD-BACKOUTCOUNT), that will tell you if the messages was already processed.... _________________ -wayne |
|
Back to top |
|
 |
babu_murugesan |
Posted: Sat Nov 11, 2006 8:35 am Post subject: |
|
|
Novice
Joined: 11 Nov 2006 Posts: 19
|
Hi,
Can you please give me more details?
Basically i need a common approach this case.
Did you get my question?
I give you an example,
Assume that Client is sending 2 messages,
First message will tigger the Dispatcher program and assume that it got failed before getting the message.
And the MQtrigger will trigger the MQDispatcher for the second message.
At this case, MQDispatcher is able to pick up the message, but it will pick up the first message..correct?
I just want to move the first message into the Dead Letter Queue and the second message should get processed .
out of two messages, how do i know? which message i need to move to Dead Letter Queue and which message i need to process.
Please let me know if i am not clear. Really i need more help on this.
Thanks,
Babu M |
|
Back to top |
|
 |
jefflowrey |
Posted: Sat Nov 11, 2006 10:41 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Really, you need to read about "backout count". And "backout queue".
And you really don't want to put your bad messages on the Dead Letter Queue. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
xxx |
Posted: Sat Nov 11, 2006 2:50 pm Post subject: |
|
|
Centurion
Joined: 13 Oct 2003 Posts: 137
|
Looks like triggering is set to Every based on Your assumption,
which is not a Prefered choice or Recomended practice,
Other option is to set a Message Expire after certain period of time, |
|
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
|
|
|
|