...
Code Block |
---|
borderStyle | solid |
---|
title | classpath:edu/ucdavis/myapp/config/application-common.xml |
---|
|
<bean id="config" class="org.kuali.rice.core.config.spring.ConfigFactoryBean">
<property name="configLocations">
<list>
<value>classpath:edu/ucdavis/myapp/config/client-config.xml</value>
</list>
</property>
</bean>
<bean id="configProperties" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">
<property name="targetObject" ref="config" />
<property name="targetMethod" value="getProperties" />
</bean>
<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="properties" ref="configProperties" />
</bean>
|
Kuali Rice uses Java Open Transaction Manager, so we declare the appropriate beans.
Code Block |
---|
borderStyle | solid |
---|
title | classpath:edu/ucdavis/myapp/config/application-data.xml |
---|
|
<bean id="jotm" class="org.springframework.transaction.jta.JotmFactoryBean">
<property name="defaultTimeout" value="${transaction.timeout}"/>
</bean>
<bean id="jtaTransactionManager" class="org.springframework.transaction.jta.JtaTransactionManager">
<property name="transactionManager" ref="jotm"/>
<property name="userTransaction" ref="jotm"/>
</bean>
|
We must declare three data sources:
- A transactional data source where the local client application's Rice tables are located. This is required by JOTM.
- A non-transactional data source pointing to those same Rice tables. This is required by Quartz.
- A transactional data source where the