|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Error/Exceptional handling in message flow. |
« View previous topic :: View next topic » |
Author |
Message
|
tom_hanks |
Posted: Fri Aug 25, 2006 10:07 pm Post subject: Error/Exceptional handling in message flow. |
|
|
Apprentice
Joined: 19 May 2006 Posts: 32
|
Hai Friends,
We have designed a flow for XML+XSL = HTML then E-Mailing.
MQ In node --> Compute Node --> XML transformation node --> Java Node.
(input XML)---------------------------> (XML + XSL = HTML)----------> (E-Mail)
Flow is working fine. Now I am enhancing it by adding exception/Error handling, MQ logging and handling backup, recovery issues.
for exception/Error handling, for each node Failure terminal I am connecting to seperate Out Node thru trace node. By trace node I am logging exceptional list into a text file. (Exception generated ${CURRENT_TIMESTAMP} for message Id= ${Root.MQMD.MsgId} ,
${ExceptionList}).
Is there any other (better) procedure on Broker for exception/Error handling.
Experties can give me good procedures to MQ logging and handling backup, recovery issues on Message Broker and Websphere MQ for production point of view.
thanks a lot,
Tom. |
|
Back to top |
|
 |
jefflowrey |
Posted: Sat Aug 26, 2006 5:46 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Don't connect the failure terminal of any node.
Only connect the catch terminal of the Input node, and put in try/catch nodes where you absolutely need to handle some particular errors differently.
Make sure your logic connected to the catch terminal of the Input node ends with a throw node.
Spend some more time reading the Information Center sections on designing message flows and error handling. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
tom_hanks |
Posted: Sun Aug 27, 2006 7:07 pm Post subject: |
|
|
Apprentice
Joined: 19 May 2006 Posts: 32
|
Hi Jeff,
1. Compute node, XML transformation node, java node does not contain Catch terminal. these has failure terminals only.
2. what happens if i connect the failure terminal of any node to trace and out_fail queues.
3. I have gone to samples in info center and observer Error Handle sample as you told.
I have started adding Error handling loop to my flow with help Error Handle sample(this example is very good).
but as per my flow which terminal i need to connect to throw node.Compute node, XML transformation node, java node does not contain Catch terminal.
thanks
-Tom. |
|
Back to top |
|
 |
jefflowrey |
Posted: Mon Aug 28, 2006 1:37 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
The Input node. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
tom_hanks |
Posted: Mon Aug 28, 2006 8:46 pm Post subject: |
|
|
Apprentice
Joined: 19 May 2006 Posts: 32
|
Got it jeff.
you mean to say that just will keep fail queue at Input node only and if message fails at any point in flow it will return to trycatch node then to input catch terminal.
i have designed and tested. working fine with valid and invalid messages.
thanks a lot.
-Tom |
|
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
|
|
|
|