njacamar.ironjacamar-embedded.3.0.5.Final.source-code.transaction.xml Maven / Gradle / Ivy
<?xml version="1.0" encoding="UTF-8"?> <deployment> <bean name="CoreEnvironmentBean" class="com.arjuna.ats.arjuna.common.CoreEnvironmentBean"> <constructor factoryClass="com.arjuna.ats.arjuna.common.arjPropertyManager" factoryMethod="getCoreEnvironmentBean"/> <property name="socketProcessIdPort">0</property> <property name="nodeIdentifier">1</property> <property name="socketProcessIdMaxPorts">10</property> </bean> <bean name="CoordinatorEnvironmentBean" class="com.arjuna.ats.arjuna.common.CoordinatorEnvironmentBean"> <constructor factoryClass="com.arjuna.ats.arjuna.common.arjPropertyManager" factoryMethod="getCoordinatorEnvironmentBean"/> <property name="enableStatistics">false</property> <property name="defaultTimeout">300</property> <property name="transactionStatusManagerEnable">false</property> <property name="txReaperTimeout">120000</property> </bean> <bean name="BeanPopulatorBean"> <constructor factoryClass="com.arjuna.common.internal.util.propertyservice.BeanPopulator" factoryMethod="getDefaultInstance"> <parameter>com.arjuna.ats.arjuna.common.ObjectStoreEnvironmentBean</parameter> </constructor> <property name="ObjectStoreType">com.arjuna.ats.internal.arjuna.objectstore.VolatileStore</property> </bean> <bean name="StateStoreObjectStoreEnvironmentBean"> <constructor factoryClass="com.arjuna.common.internal.util.propertyservice.BeanPopulator" factoryMethod="getNamedInstance"> <parameter>com.arjuna.ats.arjuna.common.ObjectStoreEnvironmentBean</parameter> <parameter>stateStore</parameter> </constructor> <property name="ObjectStoreType">com.arjuna.ats.internal.arjuna.objectstore.VolatileStore</property> <depends>BeanPopulatorBean</depends> </bean> <bean name="CommunicationStoreObjectStoreEnvironmentBean"> <constructor factoryClass="com.arjuna.common.internal.util.propertyservice.BeanPopulator" factoryMethod="getNamedInstance"> <parameter>com.arjuna.ats.arjuna.common.ObjectStoreEnvironmentBean</parameter> <parameter>communicationStore</parameter> </constructor> <property name="ObjectStoreType">com.arjuna.ats.internal.arjuna.objectstore.VolatileStore</property> <depends>BeanPopulatorBean</depends> </bean> <bean name="JTAEnvironmentBean" class="com.arjuna.ats.jta.common.JTAEnvironmentBean"> <constructor factoryClass="com.arjuna.ats.jta.common.jtaPropertyManager" factoryMethod="getJTAEnvironmentBean"/> <property name="lastResourceOptimisationInterface">org.jboss.tm.LastResource</property> <property name="transactionManagerClassName">com.arjuna.ats.jbossatx.jta.TransactionManagerDelegate</property> <property name="userTransactionClassName"><null/></property> <property name="userTransaction"><inject bean="UserTransaction"/></property> <property name="transactionSynchronizationRegistryClassName"><null/></property> <property name="transactionSynchronizationRegistry"><inject bean="TransactionSynchronizationRegistry"/></property> <property name="xaRecoveryNodes"> <list elementClass="java.lang.String"> <value>1</value> </list> </property> <property name="xaResourceOrphanFilterClassNames"> <list elementClass="java.lang.String"> <value>com.arjuna.ats.internal.jta.recovery.arjunacore.JTATransactionLogXAResourceOrphanFilter</value> <value>com.arjuna.ats.internal.jta.recovery.arjunacore.JTANodeNameXAResourceOrphanFilter</value> </list> </property> </bean> <bean name="XATerminator" class="com.arjuna.ats.internal.jbossatx.jta.jca.XATerminator"/> <bean name="TransactionSynchronizationRegistry" class="com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionSynchronizationRegistryImple"/> <bean name="TxControl" class="com.arjuna.ats.arjuna.coordinator.TxControl"/> <bean name="TransactionManager" class="com.arjuna.ats.jbossatx.jta.TransactionManagerService"> <property name="jbossXATerminator"><inject bean="XATerminator"/></property> <property name="transactionSynchronizationRegistry"><inject bean="TransactionSynchronizationRegistry"/></property> <depends>CoreEnvironmentBean</depends> <depends>CoordinatorEnvironmentBean</depends> <depends>JTAEnvironmentBean</depends> <depends>StateStoreObjectStoreEnvironmentBean</depends> <depends>CommunicationStoreObjectStoreEnvironmentBean</depends> <depends>TxControl</depends> </bean> <bean name="TransactionStatistics" class="com.arjuna.ats.arjuna.coordinator.TxStats"> <constructor factoryClass="com.arjuna.ats.arjuna.coordinator.TxStats" factoryMethod="getInstance"/> </bean> <bean name="TransactionManagerJNDIBinding" class="org.jboss.jca.core.naming.JndiBinder"> <property name="name">java:/TransactionManager</property> <property name="object"><inject bean="RealTransactionManager"/></property> <install method="bind"/> <uninstall method="unbind"/> <depends>NamingServer</depends> </bean> <bean name="TransactionSynchronizationRegistryJNDIBinding" class="org.jboss.jca.core.naming.JndiBinder"> <property name="name">java:/TransactionSynchronizationRegistry</property> <property name="object"><inject bean="TransactionSynchronizationRegistry"/></property> <install method="bind"/> <uninstall method="unbind"/> <depends>NamingServer</depends> </bean> <!-- Make jakarta.transaction.TransactionManager available for injection --> <bean name="RealTransactionManager"> <constructor factoryMethod="getTransactionManager"> <factory bean="TransactionManager"/> </constructor> </bean> <!-- Handles user transaction providers and listeners --> <bean name="UserTransactionRegistry" class="org.jboss.tm.usertx.UserTransactionRegistry"> <!-- Register providers --> <incallback method="addProvider"/> <uncallback method="removeProvider"/> <!-- Register listeners --> <incallback method="addListener"/> <uncallback method="removeListener"/> </bean> <!-- The provider for default in process UserTransactions --> <bean name="UserTransaction" class="org.jboss.tm.usertx.client.ServerVMClientUserTransaction"> <constructor factoryClass="org.jboss.tm.usertx.client.ServerVMClientUserTransaction" factoryMethod="getSingleton"/> <property name="TransactionRegistry"><inject bean="UserTransactionRegistry"/></property> <!-- Hack due to cyclic dependencies --> <incallback method="setTransactionManager"/> <uncallback method="setTransactionManager"/> </bean> <!-- Bind java:/UserTransaction --> <bean name="UserTransactionJNDIBinding" class="org.jboss.jca.core.naming.JndiBinder"> <property name="name">java:/UserTransaction</property> <property name="object"><inject bean="UserTransaction"/></property> <install method="bind"/> <uninstall method="unbind"/> <depends>NamingServer</depends> </bean> <!-- Transaction integration --> <bean name="TransactionIntegration" interface="org.jboss.jca.core.spi.transaction.TransactionIntegration" class="org.jboss.jca.core.tx.jbossts.TransactionIntegrationImpl"> <constructor> <parameter><inject bean="RealTransactionManager"/></parameter> <parameter><inject bean="TransactionSynchronizationRegistry"/></parameter> <parameter><inject bean="UserTransactionRegistry"/></parameter> <parameter><inject bean="TransactionManager" property="XATerminator"/></parameter> <parameter><null/></parameter> </constructor> </bean> </deployment>