CAS 5.3.x InMemory Service Registry is not affected by cas.serviceRegistry.watcherEnabled

16 views
Skip to first unread message

Gary P.

unread,
Oct 29, 2018, 12:54:16 PM10/29/18
to CAS Community
Following instructions on https://apereo.github.io/cas/5.3.x/installation/InMemory-Service-Management.html#
This works and is exactly what we need, but "Loaded [{}] service(s) from [{}]." message is constantly logged, so hard-coded configuration is constantly reloaded

Code being executed is in: org.apereo.cas.services.AbstractServicesManager#load
/**
* Load services that are provided by the DAO.
*/
@Scheduled(initialDelayString = "${cas.serviceRegistry.schedule.startDelay:20000}",
fixedDelayString = "${cas.serviceRegistry.schedule.repeatInterval:60000}")
@Override
@PostConstruct
public Collection<RegisteredService> load() {


I could set 31,536,000,000 (a year) for both cas.serviceRegistry.schedule.startDelay and cas.serviceRegistry.schedule.repeatInterval but it's still needlessly monitored by a Schedule.
A workaround is to copy the class in the overlay and comment out the @Scheduled annotation

A cleaner solution would be something like this, but I'm not sure how to implement this on an Abstract Class
https://stackoverflow.com/questions/34943466/how-to-disable-scheduled-method-via-properties-file
Reply all
Reply to author
Forward
0 new messages