<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> <beans> 聽 <bean id="requestService" class="com.stt.doss.server.interfaceSys.service.impl.TinterfaceRequestServiceImpl"> 聽 <bean id="servService" class="com.stt.doss.server.interfaceSys.service.impl.TinterfaceServiceServiceImpl"> <beans> 聽<bean id="tinterfaceRequestDao" class="com.stt.doss.server.interfaceSys.dao.impl.TinterfaceRequestDaoImpl" singleton="true">
<!--taskService_zjp.xml------>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "
聽聽聽 <property name="reqDao">
聽聽聽聽 <ref bean="tinterfaceRequestDao"/>
聽聽聽 </property>聽聽聽聽
聽 </bean>
聽聽聽 <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" "
聽聽<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>
]]>