...
- Declare it as part of the
rice.additionalSpringFiles
property and pass that as a token into therice
beanCode Block borderStyle solid title /usr/local/rice/rice-config.xml <param name="rice.additionalSpringFiles">classpath:edu/ucdavis/kuali/rice/kew/config/ucd-kew-service.xml</param>
Code Block borderStyle solid title classpath:edu/ucdavis/myapp/config/rice-common.xml <bean id="rice" class="org.kuali.rice.core.config.RiceConfigurer"> ... <property name="additionalSpringFiles"> <value>${rice.additionalSpringFiles}</value> </property> ... </bean>
- Declare it directly in the
rice
bean using theadditionalSpringFiles
property (see Rice Bean Configuration)Code Block borderStyle solid title classpath:edu/ucdavis/myapp/config/rice-common.xml <bean id="rice" class="org.kuali.rice.core.config.RiceConfigurer"> ... <property name="additionalSpringFiles"> <list> <value>classpath:edu/ucdavis/kuali/rice/kew/config/ucd-kew-service.xml</value> </list> </property> ... </bean>
- If you're using Spring's
ContextLoaderListener
, declare it inweb.xml
Code Block borderStyle solid title src/main/webapp/WEB-INF/web.xml <listener> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> </listener> <context-param> <param-name>contextConfigLocation</param-name> <param-value> classpath:edu/ucdavis/kuali/rice/kew/config/ucd-kew-service.xml </param-value> </context-param>
KNS Service Configuration (DRAFT)
UCD has implemented a custom Workflow Information Service that overrides the base service, so that Rice can retrieve system users (KR,KFS,etc.) in the database, rather than in LDAP.
Spring Bean Configuration
Declare the service using either of the following methods:
- Declare it as part of the
rice.additionalSpringFiles
property and pass that as a token into therice
beanCode Block borderStyle solid title /usr/local/rice/rice-config.xml <param name="rice.additionalSpringFiles">classpath:edu/ucdavis/kuali/rice/kew/config/ucd-kns-service.xml</param>
Code Block borderStyle solid title classpath:edu/ucdavis/myapp/config/rice-common.xml <bean id="rice" class="org.kuali.rice.core.config.RiceConfigurer"> ... <property name="additionalSpringFiles"> <value>${rice.additionalSpringFiles}</value> </property> ... </bean>
- Declare it directly in the
rice
bean using theadditionalSpringFiles
property (see Rice Bean Configuration)Code Block borderStyle solid title classpath:edu/ucdavis/myapp/config/rice-common.xml <bean id="rice" class="org.kuali.rice.core.config.RiceConfigurer"> ... <property name="additionalSpringFiles"> <list> <value>classpath:edu/ucdavis/kuali/rice/kew/config/ucd-kns-service.xml</value> </list> </property> ... </bean>
- If you're using Spring's
ContextLoaderListener
, declare it inweb.xml
Code Block borderStyle solid title src/main/webapp/WEB-INF/web.xml <listener> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> </listener> <context-param> <param-name>contextConfigLocation</param-name> <param-value> classpath:edu/ucdavis/kuali/rice/kew/config/ucd-kns-service.xml </param-value> </context-param>
Rice Bean Configuration
Finally, we declare the rice
bean and inject all of the core data source beans into it along with any required additional Spring files.
...