[CAS 5.0.x] json and inmemory all together in

68 views
Skip to first unread message

Didier Capdevielle

unread,
Jun 6, 2017, 10:20:22 AM6/6/17
to CAS Community
Hi all,
Maybe is there something i don't understand but ...

I add cas-server-support-json-service-registry dependency.
I add parameters in cas.properties :
...
## Service Registry
# cas.serviceRegistry.watcherEnabled=true      OR uncommented
# cas.serviceRegistry.repeatInterval=120000     OR uncommented
# cas.serviceRegistry.startDelay=15000
cas.serviceRegistry.initFromJson=true

##
# JSON Service Registry
#
# Directory location where JSON service files may be found.
# v42x: service.registry.config.location=/etc/cas/json
# cas.serviceRegistry.config.location: classpath:/services
cas.serviceRegistry.config.location=file:///etc/cas/json/
...


Didier Capdevielle

unread,
Jun 6, 2017, 10:25:11 AM6/6/17
to CAS Community
Sorry, bad manip'

I follow.


Le mardi 6 juin 2017 16:20:22 UTC+2, Didier Capdevielle a écrit :
Hi all,
Maybe is there something i don't understand but ...

I add cas-server-support-json-service-registry dependency.
I add parameters in cas.properties :
...
## Service Registry
# cas.serviceRegistry.watcherEnabled=true      OR uncommented
# cas.serviceRegistry.repeatInterval=120000     OR uncommented
# cas.serviceRegistry.startDelay=15000           OR uncommented

cas.serviceRegistry.initFromJson=true

##
# JSON Service Registry
#
# Directory location where JSON service files may be found.
# v42x: service.registry.config.location=/etc/cas/json
# cas.serviceRegistry.config.location: classpath:/services
cas.serviceRegistry.config.location=file:///etc/cas/json/
...

I build and deploy and here is catalina.out :
2017-06-06 15:53:15,323 INFO [org.apereo.cas.services.DefaultServicesManagerImpl] - <Loaded 1 services from JsonServiceRegistryDao.>
2017-06-06 15:53:47,544 INFO [org.apereo.cas.services.DefaultServicesManagerImpl] - <Loaded 2 services from InMemoryServiceRegistryDaoImpl.>
2017-06-06 15:54:15,323 INFO [org.apereo.cas.services.DefaultServicesManagerImpl] - <Loaded 1 services from JsonServiceRegistryDao.>
2017-06-06 15:54:47,544 INFO [org.apereo.cas.services.DefaultServicesManagerImpl] - <Loaded 2 services from InMemoryServiceRegistryDaoImpl.>
2017-06-06 15:55:15,324 INFO [org.apereo.cas.services.DefaultServicesManagerImpl] - <Loaded 1 services from JsonServiceRegistryDao.>
2017-06-06 15:55:47,545 INFO [org.apereo.cas.services.DefaultServicesManagerImpl] - <Loaded 2 services from InMemoryServiceRegistryDaoImpl.>
2017-06-06 15:56:15,326 INFO [org.apereo.cas.services.DefaultServicesManagerImpl] - <Loaded 1 services from JsonServiceRegistryDao.>
2017-06-06 15:56:47,545 INFO [org.apereo.cas.services.DefaultServicesManagerImpl] - <Loaded 2 services from InMemoryServiceRegistryDaoImpl.>
2017-06-06 15:57:15,327 INFO [org.apereo.cas.services.DefaultServicesManagerImpl] - <Loaded 1 services from JsonServiceRegistryDao.>
2017-06-06 15:57:47,546 INFO [org.apereo.cas.services.DefaultServicesManagerImpl] - <Loaded 2 services from InMemoryServiceRegistryDaoImpl.>
2017-06-06 15:58:15,327 INFO [org.apereo.cas.services.DefaultServicesManagerImpl] - <Loaded 1 services from JsonServiceRegistryDao.>
2017-06-06 15:58:47,546 INFO [org.apereo.cas.services.DefaultServicesManagerImpl] - <Loaded 2 services from InMemoryServiceRegistryDaoImpl.>
2017-06-06 15:59:15,328 INFO [org.apereo.cas.services.DefaultServicesManagerImpl] - <Loaded 1 services from JsonServiceRegistryDao.>
2017-06-06 15:59:47,547 INFO [org.apereo.cas.services.DefaultServicesManagerImpl] - <Loaded 2 services from InMemoryServiceRegistryDaoImpl.>
2017-06-06 16:00:15,329 INFO [org.apereo.cas.services.DefaultServicesManagerImpl] - <Loaded 1 services from JsonServiceRegistryDao.>

And so on

In 4.2.1, i choosed JSON on deployerConfigContext.xml but now ?

What's wrong ?
How to stop inMemoryService ? Where ?

Thanks in advance,
Best regards.
 

Didier Capdevielle

unread,
Jun 7, 2017, 9:37:56 AM6/7/17
to CAS Community
Hi all,
It was a problem with an old installation of cas-management.
Sorry.
Regards,
Reply all
Reply to author
Forward
0 new messages