Author |
Message
|
scravr |
Posted: Thu Jun 17, 2010 11:34 am Post subject: MB/MQ 7 --- stop flow or stop EG |
|
|
 Partisan
Joined: 03 Apr 2003 Posts: 391 Location: NY NY USA 10021
|
HI ALL,
Can anyone post a sample code for MB/MQ 7 java compute node that stops a flow or stops EG.
Thanks,
Moshe |
|
Back to top |
|
 |
mqjeff |
Posted: Thu Jun 17, 2010 12:37 pm Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
The CMP samples are just regular java code, there's nothing special that has to be done to transform them into code that can be run in a JCN. |
|
Back to top |
|
 |
mqmatt |
Posted: Fri Jun 18, 2010 12:46 am Post subject: |
|
|
 Grand Master
Joined: 04 Aug 2004 Posts: 1213 Location: Hursley, UK
|
Exactly. You just need something like:
Code: |
import com.ibm.broker.config.proxy.*;
...
ExecutionGroupProxy eg = ExecutionGroupProxy.getLocalInstance();
MessageFlowProxy mf = eg.getMessageFlowByName("FlowToStop");
mf.stop();
|
|
|
Back to top |
|
 |
scravr |
Posted: Fri Jun 18, 2010 6:41 am Post subject: |
|
|
 Partisan
Joined: 03 Apr 2003 Posts: 391 Location: NY NY USA 10021
|
how can i get the host name and the QM port number in esql and/or mapping node? |
|
Back to top |
|
 |
mqjeff |
Posted: Fri Jun 18, 2010 7:00 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
scravr wrote: |
how can i get the host name and the QM port number in esql and/or mapping node? |
Through any of the normal means of receiving data in an ESQL or Mapping node. |
|
Back to top |
|
 |
scravr |
Posted: Fri Jun 18, 2010 7:11 am Post subject: |
|
|
 Partisan
Joined: 03 Apr 2003 Posts: 391 Location: NY NY USA 10021
|
to be specific:
can you provide a code here on how to get
HostName and QM port number
with mapping node? |
|
Back to top |
|
 |
Vitor |
Posted: Fri Jun 18, 2010 7:17 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
The question is how does the mapping node know which flow/execution group to stop, and why is the host name & port not included with this information? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
scravr |
Posted: Fri Jun 18, 2010 7:28 am Post subject: |
|
|
 Partisan
Joined: 03 Apr 2003 Posts: 391 Location: NY NY USA 10021
|
very simple question:
can someone provide esql code how to get HostName and QM port number? |
|
Back to top |
|
 |
mqjeff |
Posted: Fri Jun 18, 2010 7:37 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Simple question: what research of your own have you done to answer this simple question? |
|
Back to top |
|
 |
Gaya3 |
Posted: Fri Jun 18, 2010 7:52 am Post subject: |
|
|
 Jedi
Joined: 12 Sep 2006 Posts: 2493 Location: Boston, US
|
scravr wrote: |
very simple question:
can someone provide esql code how to get HostName and QM port number? |
the code is in this forum itself, but you have to search for it..  _________________ Regards
Gayathri
-----------------------------------------------
Do Something Before you Die |
|
Back to top |
|
 |
|