Skip to content

Instantly share code, notes, and snippets.

@dima767
Created October 31, 2014 16:10
Show Gist options
  • Select an option

  • Save dima767/b093cfd256d8a93bbcea to your computer and use it in GitHub Desktop.

Select an option

Save dima767/b093cfd256d8a93bbcea to your computer and use it in GitHub Desktop.
CAS addons 1.13 resource change watcher context
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:task="http://www.springframework.org/schema/task"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:cas="http://unicon.net/schema/cas"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/task
http://www.springframework.org/schema/task/spring-task.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context.xsd
http://unicon.net/schema/cas
http://unicon.net/schema/cas/cas-addons.xsd">
<!-- To enable JsonServiceRegistryDao#ServicesManagerInjectableBeanPostProcessor -->
<context:component-scan base-package="net.unicon.cas.addons.serviceregistry">
<context:exclude-filter type="annotation" expression="org.springframework.stereotype.Repository"/>
</context:component-scan>
<cas:disable-default-registered-services-reloading/>
<cas:resource-change-detector id="registeredServicesChangeDetectingEventNotifier" watched-resource="${services.registry.config.location}"/>
<task:scheduler id="springScheduler" pool-size="3"/>
<task:scheduled-tasks scheduler="springScheduler">
<task:scheduled ref="registeredServicesChangeDetectingEventNotifier"
method="notifyOfTheResourceChangeEventIfNecessary" fixed-delay="3000"/>
</task:scheduled-tasks>
</beans>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment