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

-- 
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
--- 
You received this message because you are subscribed to the Google Groups "CAS 
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/bbe1c9e5-9c8d-492e-be8e-38b8e104358c%40apereo.org.

Reply via email to