Question

Is there any solution to restart JMS listener in the activity

We have security requirement needs to automatic update JMS listener credential regularly.
But we found an issue that is only after restarting the JMS listener it will take effect.

As this is the automatic procedure, we don't want to go SMA and restart all the JMS listener manually.
We are thinking to write an activity in Pega code which can achieve this requirement.

Is there any Pega API or method can be called to achieve this?

**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.

Correct Answer
July 11, 2017 - 2:06am

Hi,

Please look into the below post. 

 

You may try performing it by updating the DSS setting through activity. Please refer to below post

https://pdn.pega.com/community/pega-product-support/question/can-we-stop-any-listener-through-activityif-yes-can-any-body

Hope this helps.

Comments

Keep up to date on this post and subscribe to comments

July 11, 2017 - 2:06am

Hi,

Please look into the below post. 

 

You may try performing it by updating the DSS setting through activity. Please refer to below post

https://pdn.pega.com/community/pega-product-support/question/can-we-stop-any-listener-through-activityif-yes-can-any-body

Hope this helps.

July 11, 2017 - 9:58pm
Response to Sandeep46

Hi Sandeep,

This is very useful information, let me do some investigation, thanks much!

July 24, 2017 - 2:50pm

This function can be implemented by below code:

String result = (String)com.pega.pegarules.priv.management.MBeanManagement.executeMBeanOperation("com.pega.pegarules.management.internal.ListenerManagement", "RestartAll", null, null, null);

Thanks to Sandeep.