ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » MB/MQ 7 --- stop flow or stop EG

Post new topic  Reply to topic
 MB/MQ 7 --- stop flow or stop EG « View previous topic :: View next topic » 
Author Message
scravr
PostPosted: Thu Jun 17, 2010 11:34 am    Post subject: MB/MQ 7 --- stop flow or stop EG Reply with quote

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
View user's profile Send private message Send e-mail MSN Messenger
mqjeff
PostPosted: Thu Jun 17, 2010 12:37 pm    Post subject: Reply with quote

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
View user's profile Send private message
mqmatt
PostPosted: Fri Jun 18, 2010 12:46 am    Post subject: Reply with quote

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
View user's profile Send private message
scravr
PostPosted: Fri Jun 18, 2010 6:41 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail MSN Messenger
mqjeff
PostPosted: Fri Jun 18, 2010 7:00 am    Post subject: Reply with quote

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
View user's profile Send private message
scravr
PostPosted: Fri Jun 18, 2010 7:11 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail MSN Messenger
Vitor
PostPosted: Fri Jun 18, 2010 7:17 am    Post subject: Reply with quote

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
View user's profile Send private message
scravr
PostPosted: Fri Jun 18, 2010 7:28 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail MSN Messenger
mqjeff
PostPosted: Fri Jun 18, 2010 7:37 am    Post subject: Reply with quote

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
View user's profile Send private message
Gaya3
PostPosted: Fri Jun 18, 2010 7:52 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » MB/MQ 7 --- stop flow or stop EG
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.