|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Writing exceptions to broker log |
« View previous topic :: View next topic » |
Author |
Message
|
ntwmb |
Posted: Tue Sep 30, 2008 3:21 am Post subject: Writing exceptions to broker log |
|
|
Apprentice
Joined: 18 Sep 2008 Posts: 34
|
Hi
I have a message flow like given below.
HTTPInput -> Compute1 -> HTTPRequest -> Compute2 -> HTTPReply
All nodes out terminals are connected.
Now I have connected HTTPInput catch terminal to compute node.
HTTPInput -> Compute3 -> HTTPReply
HTTPInput catch terminal catches any exception occuured in message flow. Compute3 node creates error code to be sent to HTTPReply node, the error code indicates some error happened in message flow.
What I want to do is, if I sent the error code back to application, I want to write whatever the exception occurred in message flow to broker log. It will eb able to relate this is the error code and this is the exception occurred after seeing the log. I need to do this without using trace nodes.
Is someone have any idea on this, please post your reply, it will be really helpful for me.
Thanks. |
|
Back to top |
|
 |
Tibor |
Posted: Tue Sep 30, 2008 6:44 am Post subject: |
|
|
 Grand Master
Joined: 20 May 2001 Posts: 1033 Location: Hungary
|
Sorry, but I don't understand your problem with the trace node. This is a common and useful way for writing logs.
Tibor |
|
Back to top |
|
 |
broker_new |
Posted: Tue Sep 30, 2008 7:37 am Post subject: |
|
|
 Yatiri
Joined: 30 Nov 2006 Posts: 614 Location: Washington DC
|
As we know Java provides a lot of functionalites you can use it in this case.
use a Java Compute Node and write the whole content what you intend to write into it.  |
|
Back to top |
|
 |
ntwmb |
Posted: Tue Sep 30, 2008 7:56 am Post subject: |
|
|
Apprentice
Joined: 18 Sep 2008 Posts: 34
|
Hi
We are using HTTP nodes and no javacompute nodes are using in our design.
I have seen java giving few methods to do this.
I tried using LOG statement like
LOG EVENT EXCEPTION FULL;
And the log appeared as below.
Sep 30 15:26:04 user:info WebSphere Broker v6102[1130732]: ()[7218]BIP2951I: Event generated by user co
de. Additional information : 'SampleFlow.UpdateMessage' '{1}' '{2}' '{3}' '{4}' '{5}' '{6}' '{7}' '{8}' '{9}' : .969634
4e-1a01-0000-0080-c2344f5f36c5: /build/S610_P/src/DataFlowEngine/ImbRdl/ImbRdlThrowExceptionStatements.cpp: 158: SqlThrowExce
ptionStatement::execute: ComIbmComputeNode: SampleFlow#FCMComposite_1_4
I can use trace node but I want to know without using trace node, which statements I can use to write the exceptions to broker log.
Thanks. |
|
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
|
|
|
|