日期:2014-05-16 浏览次数:20366 次
<context-param> <param-name>contextConfigLocation</param-name> <param-value>classpath*:applicationContext.xml</param-value> </context-param> <listener> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> </listener>
<factories> <factory id="spring" class="com.labApp.beanFactory.SpringFactory" /> </factories>
<destination id="checkLogin"> <properties> <factory>spring</factory> <source>checkLogin</source> </properties> </destination>
<bean id="checkLogin" class="*.*.CheckLogin"> </bean>
<mx:RemoteObject id="login" destination="checkLogin" result="getResult(event)"/>
<bean id="dataSource" class="org.logicalcobwebs.proxool.ProxoolDataSource"> <property name="driver" value="oracle.jdbc.driver.OracleDriver"> </property> <property name="driverUrl" value="**"> </property> <property name="user" value="**"></property> <property name="password" value="**"></property> <property name="alias"> <value>Oracle</value> </property> <property name="trace"> <value>true</value> </property> </bean>
<bean id="jdbcTemplate" class="org.springframework.jdbc.core.JdbcTemplate"> <property name="dataSource" ref="dataSource"></property> </bean> <bean id="labJdbcDAO" class="com.labApp.dao.jdbc.LabJdbcDAO"> <property name="jdbcTemplate" ref="jdbcTemplate"></property> </bean>
<bean id="jdbcTransactionManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager"> <property name="dataSource" ref="dataSource"/> </bean> <bean id="jdbcTransactionProxy" class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean" abstract="true"> <property name="transactionManager"> <ref local="jdbcTransactionManager"/> </property> <property name="transactionAttributes"> <props> <prop key="add*">PROPAGATION_REQUIRED</prop> <prop key="save*">PROPAGATION_REQUIRED</prop> <prop key="delete*">PROPAGATION_REQUIRED</prop> <prop key="update*">PROPAGATION_REQUIRED</prop> <!-- <prop key="get*">PROPAGATION_REQUIRED,readOnly</prop> --> <prop key="find*">PROPAGATION_REQUIRED,readOnly</prop> <prop key="query*">PROPAGATION_REQUIRED,readOnly</prop> <prop key="*">PROPAGATION_REQUIRED,readOnly</prop> </props> </property> </bean> <bean id="checkLogin" pa