<!--applicationContext.xml-->
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
<beans>
<bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="locations">
<list>
<value>config/resources/jdbc.properties</value>
<value>config/resources/doss-interface.properties</value>
</list>
</property>
</bean>
<!--
<bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close" singleton="true">
<property name="username">
<value>${jdbc.username}</value>
</property>
<property name="password">
<value>${jdbc.password}</value>
</property>
<property name="driverClassName">
<value>${jdbc.driverClassName}</value>
</property>
<property name="url">
<value>${jdbc.url}</value>
</property>
</bean>
-->
<bean id="dataSource" class="org.springframework.jndi.JndiObjectFactoryBean">
<property name="jndiName">
<value>${jdbc.ds}</value>
</property>
<property name="resourceRef">
<value>true</value>
</property>
</bean>
<bean id="smsSourceNumber" class="com.stt.interfacesys.netgateway.SendSMSSourceNumber">
<property name="serverSocketPort">
<value>${batchActionSendTask_ServerSocket_Port}</value>
</property>
<property name="cmpp_path">
<value>${cmppfile.path}</value>
</property>
</bean>
<bean name="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean" singleton="true">
<property name="dataSource">
<ref bean="dataSource" />
</property>
<property name="hibernateProperties">
<props>
<prop key="hibernate.dialect">org.hibernate.dialect.OracleDialect</prop>
<prop key="hibernate.show_sql">true</prop>
<prop key="hibernate.jdbc.fetch_size">80</prop>
<prop key="hibernate.jdbc.batch_size">35</prop>
</props>
</property>
<property name="mappingDirectoryLocations">
<list>
<value>classpath:/com/stt/doss/server/interfaceSys/dao/mapping</value>
</list>
</property>
</bean>
<!--
<bean id="messageSource" class="org.springframework.context.support.ResourceBundleMessageSource">
<property name="basenames">
<list>
<value>config/spring/ApplicationResources</value>
</list>
</property>
</bean>
-->
<bean id="transactionManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager" singleton="true">
<property name="sessionFactory">
<ref bean="sessionFactory" />
</property>
</bean>
<bean id="transactionInterceptor" class="org.springframework.transaction.interceptor.TransactionInterceptor" singleton="true">
<property name="transactionManager">
<ref bean="transactionManager" />
</property>
<property name="transactionAttributes">
<props>
<prop key="query*">PROPAGATION_REQUIRED,readOnly</prop>
<prop key="get*">PROPAGATION_REQUIRED,readOnly</prop>
<prop key="find*">PROPAGATION_REQUIRED,readOnly</prop>
<prop key="load*">PROPAGATION_REQUIRED,readOnly</prop>
<prop key="*">PROPAGATION_REQUIRED</prop>
</props>
</property>
</bean>
<bean id="autoProxyCreator" class="org.springframework.aop.framework.autoproxy.BeanNameAutoProxyCreator">
<property name="beanNames">
<value>*Service*</value>
</property>
<property name="interceptorNames">
<list>
<value>transactionInterceptor</value>
</list>
</property>
</bean>
<!--
<bean id="advisor" class="org.springframework.aop.support.RegexpMethodPointcutAdvisor">
<property name="advice">
<ref bean="transactionInterceptor" />
</property>
<property name="pattern">
<value>.+Service.*</value>
</property>
</bean>
<bean id="autoProxyCreator" class="org.springframework.aop.framework.autoproxy.DefaultAdvisorAutoProxyCreator" />
-->
</beans>
<!--taskService_zjp.xml------>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
<beans>
<bean id="requestService" class="com.stt.doss.server.interfaceSys.service.impl.TinterfaceRequestServiceImpl">
<property name="reqDao">
<ref bean="tinterfaceRequestDao"/>
</property>
</bean>
<bean id="servService" class="com.stt.doss.server.interfaceSys.service.impl.TinterfaceServiceServiceImpl">
<property name="servDao">
<ref bean="tinterfaceServiceDao"/>
</property>
</bean>
<bean id="invokeUserCompannyService" class="com.stt.doss.server.usermanage.service.impl.TinterfaceInvokeUserCompanyServiceImpl">
<property name="invokeUserDao">
<ref bean="invokeUserDao"/>
</property>
<property name="companyDao">
<ref bean="companyDao"/>
</property>
</bean>
<bean id="invokeUserService" class="com.stt.doss.server.usermanage.service.impl.TinterfaceInvokeUserServiceImpl">
<property name="invokeUserDao">
<ref bean="invokeUserDao"/>
</property>
</bean>
<bean id="invokeCompanyrService" class="com.stt.doss.server.usermanage.service.impl.TinterfaceInvokeCompanyServiceImpl">
<property name="companyDao">
<ref bean="companyDao"/>
</property>
</bean>
<bean id="systemPlatformService" class="com.stt.doss.server.usermanage.service.impl.Tinterface_3_SystemServiceImpl">
<property name="systemPlatformDao">
<ref bean="systemPlatformDao"/>
</property>
</bean>
<bean id="accountService" class="com.stt.doss.server.usermanage.service.impl.TinterfaceAccountServiceImpl">
<property name="accountDao">
<ref bean="accountDao"/>
</property>
</bean>
</beans>
<!--taskDao_zjp.xml-->
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
<beans>
<bean id="tinterfaceRequestDao" class="com.stt.doss.server.interfaceSys.dao.impl.TinterfaceRequestDaoImpl" singleton="true">
<property name="sessionFactory">
<ref bean="sessionFactory" />
</property>
</bean>
<bean id="tinterfaceServiceDao" class="com.stt.doss.server.interfaceSys.dao.impl.TinterfaceServicDaoImpl" singleton="true">
<property name="sessionFactory">
<ref bean="sessionFactory" />
</property>
</bean>
<bean id="invokeUserDao" class="com.stt.doss.server.usermanage.dao.impl.TinterfaceInvokeUserDaoImpl" singleton="true">
<property name="sessionFactory">
<ref bean="sessionFactory" />
</property>
</bean>
<bean id="companyDao" class="com.stt.doss.server.usermanage.dao.impl.TinterfaceInvokeCompanyDaoImpl" singleton="true">
<property name="sessionFactory">
<ref bean="sessionFactory" />
</property>
</bean>
<bean id="systemPlatformDao" class="com.stt.doss.server.usermanage.dao.impl.Tinterface_3_SystemDaoImpl" singleton="true">
<property name="sessionFactory">
<ref bean="sessionFactory" />
</property>
</bean>
<bean id="accountDao" class="com.stt.doss.server.usermanage.dao.impl.TinterfaceAccountDaoImpl" singleton="true">
<property name="sessionFactory">
<ref bean="sessionFactory" />
</property>
</bean>
</beans>