Question
Agora Group Pvt. Ltd
IN
Last activity: 30 Sep 2016 13:36 EDT
Listener Status Notification
Is there a way that we can be notified whenever listener goes down?
In my application we are using listeners to monitor INBOX and creating cases. Whenever listener goes down we need to go to SMA and restart it.
So, is there a way that there will be notification triggered whenever listener goes down?
***Updated by moderator: Marissa to update categories***
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Infosys
AU
Not sure if this can configured in AES but you can use MBean API to get status and send notification programmatically.
Refer to nice and detailed document by Kevin Zheng: JMX API code sample for PRPC MBeans
Yes you can, let me send you the sample code in a while.
Agora Group Pvt. Ltd
IN
Hello Aditya,
Can you send me the code you are talking about.
Regards,
Zakir
Hi Zakir,
There is a private API method executeMbeanOperation. See activity executeMbeanOperation in AESRemote ruleset for example code. You can use MBEAN operation ListenerStatus() to pass to executeMbeanOperation. Example:
String result = (String)com.pega.pegarules.priv.management.MBeanManagement.executeMBeanOperation( "com.pega.pegarules.management.internal.ListenerManagement", "ListenerStatus", null, null, null);
-Adi
Agora Group Pvt. Ltd
IN
Hi Murali,
How exactly i should use this code. I'm not much aware of this process. Can you give a brief procedural steps.
Regards,
Zakir
Virtusa
IN
Where can i get the list of operations for a particular mbean?
Tata Consulting Services
US
Can we call this mbean opertaion and get status of listeners running in a different node. For exmaple, we have 4 nodes and mbean opertaion is executed from a activity from the first node. Now we want to get the status of listners that are running in other 3 nodes. Appreciate your inputs.
Pegasystems Inc.
US
Hello, we are also looking for similar solution please share if you found any. Thanks Chari.R.V.
-
surendra kumar