Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

The two LDAP data sources source that you supply are injected into a Spring PoolingContextSource beans bean which are is in turn injected into the KIM Identity Service.

...

  1. Set all parameters yourself solid
    Code Block
    borderStyle
    titleclasspath:edu/ucdavis/myapp/config/client-config.xml
    borderStylesolid
    <config>
        ...
        <param name="ldap.pool.maxTotal">-1</param>
        ...
        <param name="ldap.pool.testOnBorrow">true</param>
    </config>
    
  2. Tell KIM Identity Service to use default properties while you set one or more parameters solid
    Code Block
    borderStyle
    titleclasspath:edu/ucdavis/myapp/config/client-config.xml
    borderStylesolid
    <config>
        ...
        <param name="config.location">classpath:META-INF/common-config-defaults.xml</param>
        <param name="config.location">classpath:edu/ucdavis/iet/kuali/rice/kim/config/default-properties.xml</param>
        ...
        <param name="ldap.pool.testOnBorrow">true</param>
        ...
    </config>
    
    Info

    At minimum, you must set ldap.pool.testOnBorrow to true, or else the PoolingContextSource won't be validating any connections in the pool.

  3. Tell Rice to use default properties using Spring while you set one or more parameters borderStyle
    Code Block
    solidtitleclasspath:edu/ucdavis/myapp/config/application-common.xml
    borderStylesolid
    <bean id="config" class="org.kuali.rice.core.config.spring.ConfigFactoryBean">
        <property name="configLocations">
            <list>
    	    <value>classpath:edu/ucdavis/iet/kuali/rice/kim/config/default-properties.xml</value>
                <value>classpath:edu/ucdavis/myapp/config/client-config.xml</value>
    	</list>
        </property>
    </bean>
    
    solid
    Code Block
    borderStyle
    titleclasspath:edu/ucdavis/myapp/config/client-config.xml
    borderStylesolid
    <config>
        ...
        <param name="ldap.pool.testOnBorrow">true</param>
        ...
    </config>