> Does anyone know if it is possible to flush the JPA store for
> registered services periodically on CAS.

Yes.  Here's our config to do that:

  <!--
  Job to periodically reload services from service registry.
  This job is needed for a clustered CAS environment since service changes
  in one CAS node are not known to the other until a reload.
  -->
  <bean id="serviceRegistryReloaderJobDetail"
    
class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean"
    p:targetObject-ref="servicesManager"
    p:targetMethod="reload"
  />

  <bean id="periodicServiceRegistryReloaderTrigger"
    class="org.springframework.scheduling.quartz.SimpleTriggerBean"
    p:jobDetail-ref="serviceRegistryReloaderJobDetail"
    p:startDelay="600000"
    p:repeatInterval="1800000"
  />

Hope that helps,
M

-- 
You are currently subscribed to [email protected] as: 
[email protected]
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-user

Reply via email to