Author |
Message
|
RocknRambo |
Posted: Wed Jun 01, 2005 2:55 pm Post subject: Compute Node |
|
|
Partisan
Joined: 24 Sep 2003 Posts: 355
|
Can we explicity send messages to the Failure terminal.. ?
After a If computation, can I explicitly send message to the failure Terminal
any thoughts are appreciated
-RR |
|
Back to top |
|
 |
EddieA |
Posted: Wed Jun 01, 2005 6:12 pm Post subject: |
|
|
 Jedi
Joined: 28 Jun 2001 Posts: 2453 Location: Los Angeles
|
Why would you want to do this.
What are you trying to achieve.
Cheers, _________________ Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0 |
|
Back to top |
|
 |
JT |
Posted: Wed Jun 01, 2005 7:29 pm Post subject: |
|
|
Padawan
Joined: 27 Mar 2003 Posts: 1564 Location: Hartford, CT.
|
You could Throw an exception. |
|
Back to top |
|
 |
fschofer |
Posted: Thu Jun 02, 2005 1:51 am Post subject: |
|
|
 Knight
Joined: 02 Jul 2001 Posts: 524 Location: Mainz, Germany
|
Or set an environment variable and put a filter node behind your compute to send the message to another direction. |
|
Back to top |
|
 |
RocknRambo |
Posted: Thu Jun 02, 2005 4:13 am Post subject: |
|
|
Partisan
Joined: 24 Sep 2003 Posts: 355
|
This is what I'm trying to do..
I have check condition in the compute Node, IF false, I Ignore the message.
Now, I'm trying to capture the Ignored Message and want to build a new message stating its the Ignored(filtered) message.
Using Throw Exception: does'nt the messages roll back to catch terminal ?
Environment variables and filter Node.. Yeah I did do this...but ending up with more number of nodes..
so, wondering, If I cud use the failure terminal of compute node.
-RR |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Jun 02, 2005 4:23 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
So, you have an if statement in your compute node ESQL.
This says "if this message should not be ignored, do something".
You want to do something else if the message should be ignored...
It is a false economy to limit the number of nodes you use - unless you are under very specific very measurable performance rules.
You can put your entire check condition logic in a Filter node instead of a Compute node. See the documentation on the Return statement for more information. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
|