Aaron,

no, you are not being stupid at all. The thing is, you don't have to know the 
class name of that registry implementation. Just use the custom XML element to 
define it and it will create an appropriate instance, just like the doc says:

<beans xmlns="http://www.springframework.org/schema/beans";
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
       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://unicon.net/schema/cas
                           http://unicon.net/schema/cas/cas-addons.xsd";>
    
    <!-- This definition uses the default config file location of 
/etc/cas/registeredServices.conf --> 
    <cas:json-services-registry/>

    <!-- Use this form to configure with different config file location -->
    <!-- <cas:json-services-registry 
config-file="/opt/cas/otherConfigFile.json"/> -->

</beans>

Cheers,
Dmitriy.


On Sep 26, 2013, at 4:11 PM, Aaron Bennett <[email protected]> wrote:

> 
> 
> From: Andrew Petro [mailto:[email protected]] 
> Sent: Tuesday, September 24, 2013 11:12 AM
> To: [email protected]
> Subject: Re: [cas-user] zero luck getting MySQL as services management backend
> 
>> Aaron,
> 
>> Depending where you're at with your proof-of-concept, maybe you'd like to 
>> try the JSON-file-backed services registry instead?  I've found that not 
>> having a runtime >dependency on a database can save some trouble.
> 
> 
> Hi Andrew,
> 
> Thank you.  I'm definitely interested in trying that since we have no other 
> reason for a MySQL database in this project.  Unfortunately it seems the docs 
> are incomplete: 
> https://github.com/Unicon/cas-addons/wiki/Configuring%20JSON%20Service%20Registry
>  , or else I'm woefully obtuse.
> 
> I can see the edits needed to the <beans> section, but it never shows the 
> definition of the JsonServiceRegistryDao bean.  I know it's something like:
> 
>        <bean
>                id="serviceRegistryDao"
>        class="what ever class the Json Registry implements ">
> 
> But that's not on the page.  If I'm being stupid, feel free to tell me!
> 
> Thanks,
> 
> Aaron
> 
> 
> ---
> Aaron Bennett
> Manager of Systems Administration
> Clark University ITS
> W:508.793.7315
> 
> 
> 
> -- 
> 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
> 


-- 
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