|
Spring Framework example source code file (contextA.xml)
The Spring Framework contextA.xml source code<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd"> <import resource="import1.xml"/> <import resource="classpath:org/springframework/context/support/test/*/import2.xml"/> <context:property-override location="org/springframework/context/support/override.properties"/> <bean id="messageSource" class="org.springframework.context.support.StaticMessageSource"/> <bean class="org.springframework.context.support.FactoryBeanAndApplicationListener"/> <bean name="service" class="org.springframework.context.support.Service" dependency-check="objects"> <property name="resources" value="/org/springframework/context/support/test/context*.xml"/> </bean> <bean name="service2" class="org.springframework.context.support.Service" autowire="byName" depends-on="service"> <property name="resources" value="/org/springframework/context/support/test/context*.xml"/> </bean> <bean name="autowiredService" class="org.springframework.context.support.AutowiredService" autowire="byName"/> <bean name="autowiredService2" class="org.springframework.context.support.AutowiredService" autowire="byType"/> <bean name="transactionManager" class="org.springframework.transaction.CallCountingTransactionManager"/> <bean name="wrappedAssemblerOne" class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean"> <property name="transactionManager" ref="transactionManager"/> <property name="target" ref="assemblerOne"/> <property name="proxyTargetClass" value="xxx"/> <property name="transactionAttributes"> <props> <prop key="test">PROPAGATION_REQUIRED </props> </property> </bean> <bean name="wrappedAssemblerTwo" class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean"> <property name="transactionManager" ref="transactionManager"/> <property name="target" ref="assemblerTwo"/> <property name="proxyTargetClass" value="yyy"/> <property name="transactionAttributes"> <props> <prop key="test">PROPAGATION_REQUIRED </props> </property> </bean> </beans> Other Spring Framework examples (source code examples)Here is a short list of links related to this Spring Framework contextA.xml source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.