Author |
Message
|
adars1 |
Posted: Fri May 06, 2011 7:42 am Post subject: if alt terminal not connected in java compute node |
|
|
Apprentice
Joined: 13 Jun 2010 Posts: 39
|
Hi,
In Java compute node, Iam using condition to out put .
if(outAssembly!=null) {
out.propagate(outAssembly);
}
else {
alt.propagate(assembly);
}
what happens if I donot connect alt terminal ?. is the flow ends at that terminal for alt condition ? |
|
Back to top |
|
 |
mqjeff |
Posted: Fri May 06, 2011 8:26 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
The same thing that happens if you RETURN TRUE from a Compute node that has nothing connected to it's out terminal.
Or propagate to an out1 terminal in a compute node if you PROPAGATE to that from ESQL.
Or have an MQInput node that has nothing connect to it's out terminal. |
|
Back to top |
|
 |
adars1 |
Posted: Fri May 06, 2011 12:35 pm Post subject: |
|
|
Apprentice
Joined: 13 Jun 2010 Posts: 39
|
it does not throw any exception right, if the alt terminal not connected. |
|
Back to top |
|
 |
smdavies99 |
Posted: Fri May 06, 2011 10:43 pm Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
Your message thread drops off a cliff into the deepest darkest back hole you can ever imagine.  _________________ 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 |
|
 |
mqjeff |
Posted: Sat May 07, 2011 3:57 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
smdavies99 wrote: |
Your message thread drops off a cliff into the deepest darkest back hole you can ever imagine.  |
The message thread completes processing the current message flow instance and is available to be reallocated to another message flow instance.
That is, the flow instance ends. full stop. successfully. |
|
Back to top |
|
 |
smdavies99 |
Posted: Sat May 07, 2011 5:48 am Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
mqjeff wrote: |
smdavies99 wrote: |
Your message thread drops off a cliff into the deepest darkest back hole you can ever imagine.  |
The message thread completes processing the current message flow instance and is available to be reallocated to another message flow instance.
That is, the flow instance ends. full stop. successfully. |
Indeed but as far as the user is concerned when you propagate to a unconnected terminal, that is the end. Full stop. Hence my use of the 'black hole' analogy. Then in the background Broker does a whole load of cleanup before the thread can be reused. But all of that should be of no concern to the user. _________________ 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 |
|
 |
mqjeff |
Posted: Sat May 07, 2011 12:49 pm Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
I did not view "black hole" as "completes successfully".
Perhaps it's just because I'm not British. |
|
Back to top |
|
 |
kimbert |
Posted: Sat May 07, 2011 2:16 pm Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
Non-Britishness is an unfortunate condition, but I don't think it can be blamed for this lapse  |
|
Back to top |
|
 |
|