Stop and Start Listeners from Activities

We need to stop and start listeners from Activities.
I've located a Pega API with the required methods(see below)
Could someone kindly show an example using any of these menthods?
Any assistance would be greatly appreciated.
Note: We are using 5.3sp1 on Websphere 6.1 with UDB 8.2.8



ListenerStatus() - Returns a list of available listeners with status.
isAlive(String aListenerID) - Queries the specified listener to determine its status.
Query(String aListenerID) - Queries the listener and displays data about it:
the status, the Listener Name, Listener Java Class, etc.
Start(...) - This method starts the specified listener
Stop(String aListenerID) - This method disables the specified listener
StopAll() - This method disables all the listeners defined in the system.
RestartAll() - This method stops and then restarts all Listeners defined in the system.
StopType(String aListenerClass) - This method disables all Listeners of the specified
Data-Admin-Connect class: Email, JMS, MQ, or File.
Restart(String aListenerID) - This method will stop then restart the specified Listener.

**Moderation Team has archived post**

This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.


Keep up to date on this post and subscribe to comments

June 10, 2009 - 1:15pm

have you considered the option of jmx? once you have a working code copy to java step an activity. Thanks.

June 11, 2009 - 8:47am

Hi Regec,Ganag

where can i find the documentation for the PegaAPI. I could not any methods mentioned by you, in the engine API. I have a similar requirement of starting the listeners from activities, in fact i need to continously monitor the status of listeners through activities. I have heard of AES being available, but i'm currently on 5.1.

June 11, 2009 - 10:30am

Ganaj - Using wildcard *, JMX query revealed WebSphere and JVM mBeans but not PegaRULES mBeans.

Alladiv1 - I got Javadocs for the PegaAPI from a Pega Consultant but he did not have a working example. I could post the Javadocs on the forum if someone can explain how to attach a zip file.

June 15, 2009 - 2:08pm

As gagag stated, the way to programatically accomplish the task is via JMX. The options you see in SMA (System Management Application) come from the available mbeans in JMX. There is public javadoc for the JMX mbeans. The mbean to start and stop agents is available in 5.1.

Please only use engine interfaces defined in the public api or exposed by the JMX mbeans. Internal PRPC engine APIs will change in the future and may become completely inaccessable to your code.

May 9, 2014 - 10:07am

Hi All,


if any one able to start the Listener from activity then please help me .