Author |
Message
|
chapkewl |
Posted: Tue Oct 04, 2011 10:25 am Post subject: Writing code to stop the message flow |
|
|
Newbie
Joined: 16 Sep 2010 Posts: 7
|
Hello All,
Can somebody please guide me to write the code in esql(or elsewhr) to stop the message flow. The scenario is that while writing messages to the destination if an error comes then the flow should stop at that moment and a report needs to be generated for the times the processing was stopped.
waiting... |
|
Back to top |
|
 |
smdavies99 |
Posted: Tue Oct 04, 2011 10:37 am Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
This is not an OOTB feature of Broker.
As I think about it, the more I come to the conclusion that just doing a blanket stop ona any error is a bad thing to do.
Let me explain why.
If you were (for example) writing a file to a remote FTP server and there was a network glitch, a simple retry would probably solve the problem. Just stopping the flow at the first sign of error is (in this case) thr wrong thing to do.
What are you going to do if you get a message that has bad data? Do you really want to stop ALL processing just because someone sent a message with the wrong XML or the incorrect CCSID?
My advice is to think long and hard about doing this... _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
Gaya3 |
Posted: Tue Oct 04, 2011 10:37 am Post subject: |
|
|
 Jedi
Joined: 12 Sep 2006 Posts: 2493 Location: Boston, US
|
you should have robust error handling scenario here,
i didnt get the logic, why you need to stop the business flow if any error encounters.
Anyway, you can do this by using JCN and and use Config Proxy programming to do this.
But seriousl re-think about this design, i dont find any reason though _________________ Regards
Gayathri
-----------------------------------------------
Do Something Before you Die |
|
Back to top |
|
 |
lancelotlinc |
Posted: Tue Oct 04, 2011 10:42 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
@chapkewl.
If you attended the IBM training, you would learn proper error handling. Have you achieved this training requirement with the WM663 training class? If not, why are you asking questions like this instead of obtaining the proper training so you can be an effective message broker developer? What is preventing you from taking the IBM-supplied training? _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
mqjeff |
Posted: Tue Oct 04, 2011 10:47 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
My crystal ball says that you are trying to process messages in sequence and you have been told that if an error occurs, you must stop all processing so you don't process future messages out of sequence. |
|
Back to top |
|
 |
chapkewl |
Posted: Tue Oct 04, 2011 11:27 am Post subject: |
|
|
Newbie
Joined: 16 Sep 2010 Posts: 7
|
@mqjeff, smdavies
Pretty much on same lines jeff. The client wants this in his QA system. Needs to check certain processes and wants us to put in this piece of the pilot. I have been assigned some research whether this could be conjured up to reality.
@Lancelot
Sure, in time I would and put some problems that make up to u I am just a fledgling as yet in this vast world of WMB, appreciate your suggestion!
#Gayathari
Could you please help me with some link to that? I can look into them and think of what i can design and put forward. Before putting up here I did some searching for it, but to no avail.
Thanks all for your generosity!  |
|
Back to top |
|
 |
Vitor |
Posted: Tue Oct 04, 2011 12:04 pm Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
chapkewl wrote: |
I have been assigned some research whether this could be conjured up to reality. |
It certainly can be counjured up. The question is if it should be conjured up...
(Most nuclear scientists know how to build an atomic bomb. That doesn't make building one a good idea)
chapkewl wrote: |
The client wants this |
Why? What is the client trying to achieve? It sounds like a classic example of the client specifying a technical solution rather than a business requirement (e.g. he's told you to stop the flow in the event of an error when what he wants is proper error handling)
Or he just thinks that the phrase "...and the solution includes a fire break feature to terminate processing immediately in the event of any error" will sound good in a presentation and stave off awkward questions on security & resilience.
I'm so young to be so cynical.  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
|