|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Please help me with this design. |
« View previous topic :: View next topic » |
Author |
Message
|
vininx |
Posted: Mon Jun 27, 2011 3:20 am Post subject: Please help me with this design. |
|
|
Acolyte
Joined: 13 Oct 2009 Posts: 69
|
Hi,
I am currently working in a small utility design in websphere message brokerV7.0 which will send messages on behalf of sending application, please find below the steps which my utility will do,
1) Picks up the message from the MQ queue(MQInput node) in which sending application writes the message.
2) If not present, writes the status message (which says status is normal/exception/pending acknowledgment) into status MQ queue. When the flow starts there will be no message in the status queue so it creates a status message initially.
3) Then writes the message to the target MQ queue on other queue manager and update the status to "Pending ack".
4) The flow then keeps watching the reply queue for COA's and when the COA arrives, the reply message is correlated using Correlation ID.
I am clear upto this point. I have 2 questions for which I am not sure how the message flow will work,
1) In message flow when step 4 is completed, how should I go to the first step to process the next message sent by sending application?
2) In case of any exception like, target queue is full or put disabled (on remote side) what should I do to stop my message flow?
Please advise, how these things can be accomplished in the message flows. |
|
Back to top |
|
 |
Vitor |
Posted: Mon Jun 27, 2011 4:12 am Post subject: Re: Please help me with this design. |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
vininx wrote: |
1) In message flow when step 4 is completed, how should I go to the first step to process the next message sent by sending application? |
Is it your intention that this process single threads all the input messages, i.e. it doesn't process step 1 again until step 4 has been completed? How fast is this thing intended to work???
If it isn't, then what do you mean? You get to step 4 and that flow instance is finished.
vininx wrote: |
2) In case of any exception like, target queue is full or put disabled (on remote side) what should I do to stop my message flow?
Please advise, how these things can be accomplished in the message flows. |
These things shouldn't be accomplished at all - the sending application shouldn't know or care if the target queue is put disabled or full; that's the point of WMQ, it decouples sending and receiving application. Likewise you don't say what you're going to do if the messages arrives successfully at the target but the COA or COD doesn't make it back. Or worse still, the COD doesn't but the COA does. Why do you have this acknowledgement mechanism built it? There's been a lot of discussion on this forum as to why this is a rod for your own back.
But to answer your question of "how do I tell from the sending side what the status of the reciever queue is", you can't. Not via WMB, and not via WMQ, because it's a bad idea and a feature not available in the software. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
mqjeff |
Posted: Mon Jun 27, 2011 8:00 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
This seems like it's an aggregation pattern, that doesn't need status messages at all. |
|
Back to top |
|
 |
Vitor |
Posted: Mon Jun 27, 2011 8:12 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
mqjeff wrote: |
This seems like it's an aggregation pattern |
Well it does to me too, but I didn't want to make the assumption. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
vininx |
Posted: Thu Jun 30, 2011 11:29 pm Post subject: Please help me with this design. |
|
|
Acolyte
Joined: 13 Oct 2009 Posts: 69
|
Hi... Sorry for the delayed reply. I am back to work today only. I will take your suggestions and reconsider my design. Thank you. |
|
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
|
|
|
|