All Downloads are FREE. Search and download functionalities are using the official Maven repository.

bytetcc-supports-springcloud.0.5.8.source-code.bytetcc-supports-springcloud-secondary.xml Maven / Gradle / Ivy

Go to download

The bytetcc-supports project is the module of ByteTCC for integrating with third-party open source project.

There is a newer version: 0.5.12
Show newest version
<?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" xmlns:aop="http://www.springframework.org/schema/aop"
	xmlns:tx="http://www.springframework.org/schema/tx"
	xsi:schemaLocation="http://www.springframework.org/schema/beans    
           http://www.springframework.org/schema/beans/spring-beans-3.0.xsd    
           http://www.springframework.org/schema/context    
           http://www.springframework.org/schema/context/spring-context-3.0.xsd    
           http://www.springframework.org/schema/aop    
           http://www.springframework.org/schema/aop/spring-aop-3.0.xsd    
           http://www.springframework.org/schema/tx 
           http://www.springframework.org/schema/tx/spring-tx-3.0.xsd">

	<import resource="classpath:bytetcc-supports-jta.xml" />
	<import resource="classpath:bytetcc-supports-tcc.xml" />

	<import resource="classpath:bytetcc-supports-logger-secondary.xml" />

	<bean class="org.bytesoft.bytetcc.supports.springcloud.SpringCloudEndpointPostProcessor" />
	<bean class="org.bytesoft.bytetcc.supports.springcloud.SpringCloudBeanRegistry" factory-method="getInstance">
		<property name="statefully" value="true" />
	</bean>

	<bean class="org.bytesoft.bytetcc.supports.springcloud.controller.CompensableCoordinatorController" />

	<bean id="bytetccTransactionInterceptor" class="org.bytesoft.bytetcc.supports.springcloud.CompensableInterceptorImpl">
		<property name="compensableInterceptor" ref="bytetccCompensableInterceptor" />
	</bean>

	<bean id="commonResourceDeserializer" class="org.bytesoft.bytejta.supports.serialize.XAResourceDeserializerImpl" />
	<bean id="bytetccResourceDeserializer" class="org.bytesoft.bytetcc.supports.springcloud.serialize.XAResourceDeserializerImpl">
		<property name="statefully" value="true" />
		<property name="resourceDeserializer" ref="commonResourceDeserializer" />
	</bean>

	<bean id="bytetccTransactionArchiveDeserializer" class="org.bytesoft.bytetcc.logging.deserializer.TransactionArchiveDeserializer">
		<property name="resourceArchiveDeserializer" ref="bytetccXAResourceArchiveDeserializer" />
		<property name="compensableArchiveDeserializer" ref="bytetccCompensableArchiveDeserializer" />
	</bean>
	<bean id="bytetccXAResourceArchiveDeserializer" class="org.bytesoft.bytetcc.logging.deserializer.XAResourceArchiveDeserializer">
		<property name="deserializer" ref="bytetccResourceDeserializer" />
	</bean>
	<bean id="bytetccCompensableArchiveDeserializer" class="org.bytesoft.bytetcc.logging.deserializer.CompensableArchiveDeserializer" />
	<bean id="bytetccArchiveDeserializer" class="org.bytesoft.bytetcc.logging.ArchiveDeserializerImpl">
		<property name="compensableArchiveDeserializer" ref="bytetccCompensableArchiveDeserializer" />
		<property name="xaResourceArchiveDeserializer" ref="bytetccXAResourceArchiveDeserializer" />
		<property name="transactionArchiveDeserializer" ref="bytetccTransactionArchiveDeserializer" />
	</bean>

	<bean id="bytejtaBeanFactory" class="org.bytesoft.bytejta.TransactionBeanFactoryImpl" factory-method="getInstance">
		<property name="transactionManager" ref="bytejtaTransactionManager" />
		<property name="xidFactory" ref="bytejtaXidFactory" />
		<property name="transactionTimer" ref="bytejtaTransactionManager" />
		<property name="transactionLogger" ref="bytejtaTransactionLogger" />
		<property name="transactionRepository" ref="bytejtaTransactionRepository" />
		<property name="transactionInterceptor" ref="bytejtaTransactionInterceptor" />
		<property name="transactionRecovery" ref="bytejtaTransactionRecovery" />
		<property name="transactionCoordinator" ref="bytejtaTransactionCoordinator" />
		<property name="transactionLock" ref="bytejtaTransactionLock" />
	</bean>

	<bean id="bytetccSynchronization" class="org.bytesoft.bytetcc.supports.spring.CompensableMethodInterceptor" />

	<bean id="bytetccBeanFactory" class="org.bytesoft.bytetcc.TransactionBeanFactoryImpl" factory-method="getInstance">
		<property name="transactionManager" ref="bytejtaTransactionManager" />
		<property name="compensableManager" ref="bytetccCompensableManager" />
		<property name="transactionXidFactory" ref="bytejtaXidFactory" />
		<property name="compensableXidFactory" ref="bytetccXidFactory" />
		<property name="transactionRepository" ref="bytejtaTransactionRepository" />
		<property name="compensableRepository" ref="bytetccTransactionRepository" />
		<property name="transactionRecovery" ref="bytejtaTransactionRecovery" />
		<property name="compensableRecovery" ref="bytetccTransactionRecovery" />
		<property name="transactionCoordinator" ref="bytejtaTransactionCoordinator" />
		<property name="compensableCoordinator" ref="bytetccCompensableCoordinator" />
		<property name="containerContext" ref="springContainerContext" />
		<property name="transactionInterceptor" ref="bytetccTransactionInterceptor" />
		<property name="compensableLogger" ref="bytetccCompensableLogger" />
		<property name="archiveDeserializer" ref="bytetccArchiveDeserializer" />
		<property name="resourceDeserializer" ref="bytetccResourceDeserializer" />
		<property name="localResourceCleaner" ref="bytetccCleanupWork" />
		<property name="compensableContext" ref="bytetccCompensableContext" />
		<property name="compensableLock" ref="bytetccCompensableLock" />
		<property name="compensableSynchronization" ref="bytetccSynchronization" />
		<!-- <property name="compensableRolledbackMarker" ref="bytetccTransactionRepository" /> -->
	</bean>

</beans>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy