<?xml version="1.0" encoding="gbk" ?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
<beans default-autowire="no" default-dependency-check="none"
default-lazy-init="false">
<bean class="org.springframework.orm.hibernate3.LocalSessionFactoryBean"
id="eprkDesignSessionFactory">
<property name="dataSource" ref="eprkDesignDataSource" />
<property name="hibernateProperties">
<props>
<prop key="hibernate.show_sql">true</prop>
<prop key="hibernate.cglib.use_reflection_optimizer">true</prop>
<prop key="hibernate.query.factory_class">org.hibernate.hql.classic.ClassicQueryTranslatorFactory</prop>
</props>
</property>
<property name="mappingLocations">
<list>
<value>classpath:hbm/sm/*.xml</value>
<value>classpath:hbm/sgcc/*.xml</value>
<value>classpath:hbm/foundation/*.xml</value>
<value>classpath:hbm/*.xml</value>
</list>
</property>
</bean>
<!-- 配置系统使用的事务管理方案 -->
<bean
class="org.springframework.transaction.interceptor.MatchAlwaysTransactionAttributeSource"
id="matchAllWithPropReq">
<property name="transactionAttribute" value="PROPAGATION_REQUIRED" />
</bean>
<!-- 事务拦截器 -->
<bean class="gbu.bs.foundation.transaction.TransactionInterceptor"
id="matchAllTxInterceptor">
<property name="transactionAttributeSource" ref="matchAllWithPropReq" />
</bean>
<!-- 日志拦截器 -->
<bean class="gbu.bs.foundation.log.LogInterceptor" id="logInterceptor">
<property name="simpleBusiness" ref="simpleBusiness" />
</bean>
<!-- 自动代理生成器, 需要继承框架基类的自动代理 smAutoProxyCreator -->
<bean
class="org.springframework.aop.framework.autoproxy.BeanNameAutoProxyCreator"
id="AutoProxyCreator" abstract="false">
<property name="interceptorNames">
<list>
<idref local="matchAllTxInterceptor" />
<idref local="logInterceptor" />
</list>
</property>
<property name="beanNames">
<list>
<idref local="org" />
<idref local="user" />
<idref local="simpleBusiness" />
<idref local="basicData" />
<idref local="demodel"/>
<idref local="deBulletin" />
<idref local="dePerCategory" />
<idref local="dedimensions" />
<idref local="depost"/>
</list>
</property>
</bean>
<!-- 系统参数设置 -->
<bean class="gbu.util.foundation.SystemPropertyUtil" id="systemProperty">
<property name="propertys">
<props>
<prop key="ServerName">eprk</prop>
<prop key="DbmsOutput">true</prop>
<prop key="DataType">ORACLE</prop>
<prop key="DataSource">eprkDesign</prop>
<prop key="show_sql">true</prop>
<!-- <prop key="test">test</prop> -->
</props>
</property>
</bean>
<bean class="gbu.bs.sm.AppServiceStartBO" id="appService">
<property name="serviceList">
<list>
<!-- <ref bean="monitorService"/> <ref bean="curcsvttaskThread"/> <ref
bean="monitorserviceforac"/> -->
<!-- <ref bean="payNotice"/> -->
</list>
</property>
</bean>
<bean class="cl.sm.bs.OrgBO" id="org" />
<bean class="cl.sm.bs.UserBO" id="user" />
<bean class="cl.sm.bs.WebBaseBusinessBO" id="webBaseBusiness" />
<bean class="gbu.bs.foundation.SimpleBusinessBO" id="simpleBusiness" />
<bean class="cl.sm.bs.UserAndRoleBO" id="userAndRole" />
<bean class="gbu.bs.foundation.BasicDataBO" id="basicData" />
<bean class="cl.foundation.bs.BasicDataBO" id="basicDataNew" />
<bean class="cl.sgcc.bs.DeModelBO" id="demodel" />
<bean class="cl.sgcc.bs.DeBulletinBO" id="deBulletin" />
<bean class="cl.sgcc.bs.DePerCategoryBO" id="dePerCategory" />
<bean class="cl.sgcc.bs.DeDimensionsBO" id="dedimensions" />
<bean class="cl.sgcc.bs.DePostBO" id="depost"/>
</beans>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
<beans default-autowire="no" default-dependency-check="none"
default-lazy-init="false">
<bean class="org.springframework.orm.hibernate3.LocalSessionFactoryBean"
id="eprkDesignSessionFactory">
<property name="dataSource" ref="eprkDesignDataSource" />
<property name="hibernateProperties">
<props>
<prop key="hibernate.show_sql">true</prop>
<prop key="hibernate.cglib.use_reflection_optimizer">true</prop>
<prop key="hibernate.query.factory_class">org.hibernate.hql.classic.ClassicQueryTranslatorFactory</prop>
</props>
</property>
<property name="mappingLocations">
<list>
<value>classpath:hbm/sm/*.xml</value>
<value>classpath:hbm/sgcc/*.xml</value>
<value>classpath:hbm/foundation/*.xml</value>
<value>classpath:hbm/*.xml</value>
</list>
</property>
</bean>
<!-- 配置系统使用的事务管理方案 -->
<bean
class="org.springframework.transaction.interceptor.MatchAlwaysTransactionAttributeSource"
id="matchAllWithPropReq">
<property name="transactionAttribute" value="PROPAGATION_REQUIRED" />
</bean>
<!-- 事务拦截器 -->
<bean class="gbu.bs.foundation.transaction.TransactionInterceptor"
id="matchAllTxInterceptor">
<property name="transactionAttributeSource" ref="matchAllWithPropReq" />
</bean>
<!-- 日志拦截器 -->
<bean class="gbu.bs.foundation.log.LogInterceptor" id="logInterceptor">
<property name="simpleBusiness" ref="simpleBusiness" />
</bean>
<!-- 自动代理生成器, 需要继承框架基类的自动代理 smAutoProxyCreator -->
<bean
class="org.springframework.aop.framework.autoproxy.BeanNameAutoProxyCreator"
id="AutoProxyCreator" abstract="false">
<property name="interceptorNames">
<list>
<idref local="matchAllTxInterceptor" />
<idref local="logInterceptor" />
</list>
</property>
<property name="beanNames">
<list>
<idref local="org" />
<idref local="user" />
<idref local="simpleBusiness" />
<idref local="basicData" />
<idref local="demodel"/>
<idref local="deBulletin" />
<idref local="dePerCategory" />
<idref local="dedimensions" />
<idref local="depost"/>
</list>
</property>
</bean>
<!-- 系统参数设置 -->
<bean class="gbu.util.foundation.SystemPropertyUtil" id="systemProperty">
<property name="propertys">
<props>
<prop key="ServerName">eprk</prop>
<prop key="DbmsOutput">true</prop>
<prop key="DataType">ORACLE</prop>
<prop key="DataSource">eprkDesign</prop>
<prop key="show_sql">true</prop>
<!-- <prop key="test">test</prop> -->
</props>
</property>
</bean>
<bean class="gbu.bs.sm.AppServiceStartBO" id="appService">
<property name="serviceList">
<list>
<!-- <ref bean="monitorService"/> <ref bean="curcsvttaskThread"/> <ref
bean="monitorserviceforac"/> -->
<!-- <ref bean="payNotice"/> -->
</list>
</property>
</bean>
<bean class="cl.sm.bs.OrgBO" id="org" />
<bean class="cl.sm.bs.UserBO" id="user" />
<bean class="cl.sm.bs.WebBaseBusinessBO" id="webBaseBusiness" />
<bean class="gbu.bs.foundation.SimpleBusinessBO" id="simpleBusiness" />
<bean class="cl.sm.bs.UserAndRoleBO" id="userAndRole" />
<bean class="gbu.bs.foundation.BasicDataBO" id="basicData" />
<bean class="cl.foundation.bs.BasicDataBO" id="basicDataNew" />
<bean class="cl.sgcc.bs.DeModelBO" id="demodel" />
<bean class="cl.sgcc.bs.DeBulletinBO" id="deBulletin" />
<bean class="cl.sgcc.bs.DePerCategoryBO" id="dePerCategory" />
<bean class="cl.sgcc.bs.DeDimensionsBO" id="dedimensions" />
<bean class="cl.sgcc.bs.DePostBO" id="depost"/>
</beans>