|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
which JAVA API to call in CMP-APIs for mqsichangeflowmonitor |
« View previous topic :: View next topic » |
Author |
Message
|
ajaykverma |
Posted: Mon Sep 26, 2016 1:46 am Post subject: which JAVA API to call in CMP-APIs for mqsichangeflowmonitor |
|
|
Newbie
Joined: 26 Sep 2016 Posts: 9
|
Hi,
We are configuring Jenkins for IIB code deployment. We need to know little details of JAVA API from CMP-APIs that we can call for mqsichangeflowmonitoring command. As we have to enable monitoring events what we configured for MessageFlows.
Can somebody please help us in providing the details for mqsichangeflowmonitoring, i.e. which Java API we can call to run mqsichangeflowmonitoring command?
Thanks,
Ajay |
|
Back to top |
|
 |
Craig B |
Posted: Tue Sep 27, 2016 1:09 am Post subject: |
|
|
Partisan
Joined: 18 Jun 2003 Posts: 316 Location: UK
|
If you are referring to mqsichangeflowmonitoring with the -s and -i options to specify an EventSourceAddress and whether it is active or not, then there is no alternative in the Java APIs to do this.
With these options specified the mqsichangeflowmonitoring command issues a request to "find me all nodes that have this EventSourceAddress and then update the state on them". Unfortunately the Integration API has no equivalent to this type of request. _________________ Regards
Craig |
|
Back to top |
|
 |
ajaykverma |
Posted: Tue Sep 27, 2016 4:38 am Post subject: |
|
|
Newbie
Joined: 26 Sep 2016 Posts: 9
|
I am trying to use below command:
mqsichangeflowmonitoring <BrokerName> -e <IntegrationServerName> -k <Appname> -c active -j
As no -s and -i we are trying to use.
So can you please help us in knowing which JAVA API we need to call for above command. |
|
Back to top |
|
 |
Craig B |
Posted: Tue Sep 27, 2016 4:58 am Post subject: |
|
|
Partisan
Joined: 18 Jun 2003 Posts: 316 Location: UK
|
You should be able to do that through the Integration API (CMP).
Get a BrokerProxy using getLocalInstance(String brokerName).
Get an ExecutionGroupProxy using getExecutionGroupByName(String egName).
Get an ApplicationProxy using getApplicationByName(String appName).
Then call getMessageFlows() on the application to get an Enumeration of MessageFlowProxy objects you can iterate over. For each MessageFlowProxy call setRuntimeProperty("This/monitoring", "active");
If your applications have libraries in them then you will need to iterate over the libraries and the flows within them as well.
Alternatively you could try ApplicationProxy.setAllMessageFlowsRuntimeProperty("This/monitoring", "active");
and see if that works for you. _________________ Regards
Craig |
|
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
|
|
|
|