Announcement Announcement Module
Collapse
No announcement yet.
Unit testing with JOTM and JtaTransactionManager Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Unit testing with JOTM and JtaTransactionManager

    Hey,

    I am trying to unit test a JOTM-JTA version of two simple classes using the JtaTransactionManager.

    I have attached my Spring configuration and the log from my test case. The test case simply calls my-other-business that calls the my-last-business class. The JtaTransactionManager starts and commits the transactions but when I try to a

    jotm.getTransactionCounters();

    all of the transaction counters are 0 which means JOTM thinks no transactions were started nor committed. Can anyone tell me what is wrong or how I can unit test JTA-not-DAO classes.

    Lars


    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
    <beans>

    <bean name="my-other-business" class="org.springframework.transaction.interceptor .TransactionProxyFactoryBean">
    <property name="transactionManager">
    <ref bean="transactionManager"/>
    </property>
    <property name="target">
    <ref bean="other-business-target"/>
    </property>
    <property name="transactionAttributes">
    <props>
    <prop key="testRequiredNew">PROPAGATION_REQUIRED</prop>
    </props>
    </property>
    </bean>
    <bean name="my-last-business" class="org.springframework.transaction.interceptor .TransactionProxyFactoryBean">
    <property name="transactionManager">
    <ref bean="transactionManager"/>
    </property>
    <property name="target">
    <ref bean="last-business-target"/>
    </property>
    <property name="transactionAttributes">
    <props>
    <prop key="testRequiredNew">PROPAGATION_REQUIRES_NEW </prop>
    </props>
    </property>
    </bean>
    <bean name="other-business-target" class="dk.pfa.si.tests.spring.businesslogic.impl.M yOtherBusinessImpl"/>
    <bean name="last-business-target" class="dk.pfa.si.tests.spring.businesslogic.impl.M yLastBusinessImpl"/>

    <bean id="jotm" class="org.springframework.transaction.jta.JotmFac toryBean"/>

    <bean id="transactionManager" class="org.springframework.transaction.jta.JtaTran sactionManager">
    <property name="userTransaction" ref="jotm"/>
    </bean>

    </beans>






    15-10-2005 12:25:39 org.springframework.beans.factory.xml.XmlBeanDefin itionReader loadBeanDefinitions
    FINE: Using JAXP implementation [weblogic.xml.jaxp.RegistryDocumentBuilderFactory@1 f6f0bf]
    15-10-2005 12:25:39 org.springframework.beans.factory.xml.XmlBeanDefin itionReader loadBeanDefinitions
    INFO: Loading XML bean definitions from file [C:\Documents and Settings\lni\IdeaProjects\ProofOfSpringTransaction Concept\tester\src\conf\test-mockejb-mockrunner.xml]
    15-10-2005 12:25:39 org.springframework.beans.factory.xml.BeansDtdReso lver resolveEntity
    FINE: Trying to resolve XML entity with public ID [-//SPRING//DTD BEAN//EN] and system ID [http://www.springframework.org/dtd/spring-beans.dtd]
    15-10-2005 12:25:39 org.springframework.beans.factory.xml.BeansDtdReso lver resolveEntity
    FINE: Trying to locate [spring-beans.dtd] in Spring jar
    15-10-2005 12:25:39 org.springframework.beans.factory.xml.BeansDtdReso lver resolveEntity
    FINE: Found beans DTD [http://www.springframework.org/dtd/spring-beans.dtd] in classpath
    15-10-2005 12:25:40 org.springframework.beans.factory.xml.DefaultXmlBe anDefinitionParser registerBeanDefinitions
    FINE: Loading bean definitions
    15-10-2005 12:25:40 org.springframework.beans.factory.xml.DefaultXmlBe anDefinitionParser registerBeanDefinitions
    FINE: Default lazy init 'false'
    15-10-2005 12:25:40 org.springframework.beans.factory.xml.DefaultXmlBe anDefinitionParser registerBeanDefinitions
    FINE: Default autowire 'no'
    15-10-2005 12:25:40 org.springframework.beans.factory.xml.DefaultXmlBe anDefinitionParser registerBeanDefinitions
    FINE: Default dependency check 'none'
    15-10-2005 12:25:40 org.springframework.beans.factory.xml.DefaultXmlBe anDefinitionParser parseBeanDefinitionElement
    FINE: No XML 'id' specified - using 'my-other-business' as bean name and [] as aliases
    15-10-2005 12:25:40 org.springframework.beans.factory.xml.DefaultXmlBe anDefinitionParser parseBeanDefinitionElement
    FINE: No XML 'id' specified - using 'my-last-business' as bean name and [] as aliases
    15-10-2005 12:25:40 org.springframework.beans.factory.xml.DefaultXmlBe anDefinitionParser parseBeanDefinitionElement
    FINE: No XML 'id' specified - using 'other-business-target' as bean name and [] as aliases
    15-10-2005 12:25:40 org.springframework.beans.factory.xml.DefaultXmlBe anDefinitionParser parseBeanDefinitionElement
    FINE: No XML 'id' specified - using 'last-business-target' as bean name and [] as aliases
    15-10-2005 12:25:40 org.springframework.beans.factory.xml.DefaultXmlBe anDefinitionParser registerBeanDefinitions
    FINE: Found 6 <bean> elements in file [C:\Documents and Settings\lni\IdeaProjects\ProofOfSpringTransaction Concept\tester\src\conf\test-mockejb-mockrunner.xml]
    15-10-2005 12:25:40 org.springframework.beans.factory.support.Abstract BeanDefinitionReader loadBeanDefinitions
    FINE: Loaded 6 bean definitions from location pattern [src/conf/test-mockejb-mockrunner.xml]
    15-10-2005 12:25:40 org.springframework.context.support.AbstractRefres hableApplicationContext refreshBeanFactory
    INFO: Bean factory for application context [org.springframework.context.support.FileSystemXmlA pplicationContext;hashCode=23910357]: org.springframework.beans.factory.support.DefaultL istableBeanFactory defining beans [my-other-business,my-last-business,other-business-target,last-business-target,jotm,transactionManager]; root of BeanFactory hierarchy
    15-10-2005 12:25:40 org.springframework.context.support.AbstractApplic ationContext refresh
    INFO: 6 beans defined in application context [org.springframework.context.support.FileSystemXmlA pplicationContext;hashCode=23910357]
    15-10-2005 12:25:40 org.springframework.core.CollectionFactory <clinit>
    INFO: JDK 1.4+ collections available
    15-10-2005 12:25:40 org.springframework.core.CollectionFactory createLinkedMapIfPossible
    FINE: Creating java.util.LinkedHashMap
    15-10-2005 12:25:40 org.springframework.context.support.AbstractApplic ationContext initMessageSource
    INFO: Unable to locate MessageSource with name 'messageSource': using default [org.springframework.context.support.DelegatingMess ageSource@e6f7d2]
    15-10-2005 12:25:40 org.springframework.core.CollectionFactory createLinkedSetIfPossible
    FINE: Creating java.util.LinkedHashSet
    15-10-2005 12:25:40 org.springframework.context.support.AbstractApplic ationContext initApplicationEventMulticaster
    INFO: Unable to locate ApplicationEventMulticaster with name 'applicationEventMulticaster': using default [org.springframework.context.event.SimpleApplicatio nEventMulticaster@1afae45]
    15-10-2005 12:25:40 org.springframework.core.CollectionFactory createLinkedMapIfPossible
    FINE: Creating java.util.LinkedHashMap
    15-10-2005 12:25:40 org.springframework.beans.factory.support.DefaultL istableBeanFactory preInstantiateSingletons
    INFO: Pre-instantiating singletons in factory [org.springframework.beans.factory.support.DefaultL istableBeanFactory defining beans [my-other-business,my-last-business,other-business-target,last-business-target,jotm,transactionManager]; root of BeanFactory hierarchy]
    15-10-2005 12:25:40 org.springframework.beans.factory.support.Abstract BeanFactory getBean
    FINE: Creating shared instance of singleton bean 'my-other-business'
    15-10-2005 12:25:40 org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory createBean
    FINE: Creating instance of bean 'my-other-business' with merged definition [Root bean: class [org.springframework.transaction.interceptor.Transa ctionProxyFactoryBean]; abstract=false; singleton=true; lazyInit=false; autowire=0; dependencyCheck=0; initMethodName=null; destroyMethodName=null; factoryMethodName=null; factoryBeanName=null; defined in file [C:\Documents and Settings\lni\IdeaProjects\ProofOfSpringTransaction Concept\tester\src\conf\test-mockejb-mockrunner.xml]]
    15-10-2005 12:25:40 org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory applyBeanPostProcessorsBeforeInstantiation
    FINE: Invoking BeanPostProcessors before instantiation of bean 'my-other-business'
    15-10-2005 12:25:40 org.springframework.aop.framework.DefaultAopProxyF actory <clinit>
    INFO: CGLIB2 not available: proxyTargetClass feature disabled
    15-10-2005 12:25:40 org.springframework.beans.CachedIntrospectionResul ts <init>
    FINE: Getting BeanInfo for class [org.springframework.transaction.interceptor.Transa ctionProxyFactoryBean]
    15-10-2005 12:25:40 org.springframework.beans.CachedIntrospectionResul ts <init>
    FINE: Caching PropertyDescriptors for class [org.springframework.transaction.interceptor.Transa ctionProxyFactoryBean]
    15-10-2005 12:25:40 org.springframework.beans.CachedIntrospectionResul ts <init>
    FINE: Found property 'advisorAdapterRegistry' of type [org.springframework.aop.framework.adapter.AdvisorA dapterRegistry]
    15-10-2005 12:25:40 org.springframework.beans.CachedIntrospectionResul ts <init>
    FINE: Found property 'aopProxyFactory' of type [org.springframework.aop.framework.AopProxyFactory]
    15-10-2005 12:25:40 org.springframework.beans.CachedIntrospectionResul ts <init>
    FINE: Found property 'beanFactory' of type [org.springframework.beans.factory.BeanFactory]
    15-10-2005 12:25:40 org.springframework.beans.CachedIntrospectionResul ts <init>
    FINE: Found property 'class' of type [java.lang.Class]
    15-10-2005 12:25:40 org.springframework.beans.CachedIntrospectionResul ts <init>
    FINE: Found property 'exposeProxy' of type [boolean]
    15-10-2005 12:25:40 org.springframework.beans.CachedIntrospectionResul ts <init>
    FINE: Found property 'frozen' of type [boolean]
    15-10-2005 12:25:40 org.springframework.beans.CachedIntrospectionResul ts <init>
    FINE: Found property 'object' of type [java.lang.Object]
    15-10-2005 12:25:40 org.springframework.beans.CachedIntrospectionResul ts <init>
    FINE: Found property 'objectType' of type [java.lang.Class]
    15-10-2005 12:25:40 org.springframework.beans.CachedIntrospectionResul ts <init>
    FINE: Found property 'opaque' of type [boolean]
    15-10-2005 12:25:40 org.springframework.beans.CachedIntrospectionResul ts <init>
    FINE: Found property 'optimize' of type [boolean]
    15-10-2005 12:25:40 org.springframework.beans.CachedIntrospectionResul ts <init>
    FINE: Found property 'pointcut' of type [org.springframework.aop.Pointcut]
    15-10-2005 12:25:40 org.springframework.beans.CachedIntrospectionResul ts <init>
    FINE: Found property 'postInterceptors' of type [[Ljava.lang.Object;]
    15-10-2005 12:25:40 org.springframework.beans.CachedIntrospectionResul ts <init>
    FINE: Found property 'preInterceptors' of type [[Ljava.lang.Object;]
    15-10-2005 12:25:40 org.springframework.beans.CachedIntrospectionResul ts <init>
    FINE: Found property 'proxyInterfaces' of type [[Ljava.lang.String;]
    15-10-2005 12:25:40 org.springframework.beans.CachedIntrospectionResul ts <init>
    FINE: Found property 'proxyTargetClass' of type [boolean]
    15-10-2005 12:25:40 org.springframework.beans.CachedIntrospectionResul ts <init>
    FINE: Found property 'singleton' of type [boolean]
    15-10-2005 12:25:40 org.springframework.beans.CachedIntrospectionResul ts <init>
    FINE: Found property 'target' of type [java.lang.Object]
    15-10-2005 12:25:40 org.springframework.beans.CachedIntrospectionResul ts <init>
    FINE: Found property 'transactionAttributeSource' of type [org.springframework.transaction.interceptor.Transa ctionAttributeSource]
    15-10-2005 12:25:40 org.springframework.beans.CachedIntrospectionResul ts <init>
    FINE: Found property 'transactionAttributes' of type [java.util.Properties]
    15-10-2005 12:25:40 org.springframework.beans.CachedIntrospectionResul ts <init>
    FINE: Found property 'transactionManager' of type [org.springframework.transaction.PlatformTransactio nManager]
    15-10-2005 12:25:40 org.springframework.beans.CachedIntrospectionResul ts forClass
    FINE: Class [org.springframework.transaction.interceptor.Transa ctionProxyFactoryBean] is cache-safe
    15-10-2005 12:25:40 org.springframework.beans.factory.support.BeanDefi nitionValueResolver resolveReference
    FINE: Resolving reference from property 'transactionManager' in bean 'my-other-business' to bean 'transactionManager'
    15-10-2005 12:25:40 org.springframework.core.CollectionFactory createLinkedSetIfPossible
    FINE: Creating java.util.LinkedHashSet
    15-10-2005 12:25:40 org.springframework.beans.factory.support.Abstract BeanFactory getBean
    FINE: Creating shared instance of singleton bean 'transactionManager'
    15-10-2005 12:25:40 org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory createBean
    FINE: Creating instance of bean 'transactionManager' with merged definition [Root bean: class [org.springframework.transaction.jta.JtaTransaction Manager]; abstract=false; singleton=true; lazyInit=false; autowire=0; dependencyCheck=0; initMethodName=null; destroyMethodName=null; factoryMethodName=null; factoryBeanName=null; defined in file [C:\Documents and Settings\lni\IdeaProjects\ProofOfSpringTransaction Concept\tester\src\conf\test-mockejb-mockrunner.xml]]
    15-10-2005 12:25:40 org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory applyBeanPostProcessorsBeforeInstantiation
    FINE: Invoking BeanPostProcessors before instantiation of bean 'transactionManager'
    15-10-2005 12:25:40 org.springframework.beans.CachedIntrospectionResul ts <init>
    FINE: Getting BeanInfo for class [org.springframework.transaction.jta.JtaTransaction Manager]
    15-10-2005 12:25:40 org.springframework.beans.CachedIntrospectionResul ts <init>
    FINE: Caching PropertyDescriptors for class [org.springframework.transaction.jta.JtaTransaction Manager]
    15-10-2005 12:25:40 org.springframework.beans.CachedIntrospectionResul ts <init>
    FINE: Found property 'autodetectTransactionManager' of type [boolean]
    15-10-2005 12:25:40 org.springframework.beans.CachedIntrospectionResul ts <init>
    FINE: Found property 'cacheUserTransaction' of type [boolean]
    15-10-2005 12:25:40 org.springframework.beans.CachedIntrospectionResul ts <init>
    FINE: Found property 'class' of type [java.lang.Class]
    15-10-2005 12:25:40 org.springframework.beans.CachedIntrospectionResul ts <init>
    FINE: Found property 'globalRollbackOnParticipationFailure' of type [boolean]
    15-10-2005 12:25:40 org.springframework.beans.CachedIntrospectionResul ts <init>
    FINE: Found property 'jndiEnvironment' of type [java.util.Properties]
    15-10-2005 12:25:40 org.springframework.beans.CachedIntrospectionResul ts <init>
    FINE: Found property 'jndiTemplate' of type [org.springframework.jndi.JndiTemplate]
    15-10-2005 12:25:40 org.springframework.beans.CachedIntrospectionResul ts <init>
    FINE: Found property 'nestedTransactionAllowed' of type [boolean]
    15-10-2005 12:25:40 org.springframework.beans.CachedIntrospectionResul ts <init>
    FINE: Found property 'rollbackOnCommitFailure' of type [boolean]
    15-10-2005 12:25:40 org.springframework.beans.CachedIntrospectionResul ts <init>
    FINE: Found property 'transactionManager' of type [javax.transaction.TransactionManager]
    15-10-2005 12:25:40 org.springframework.beans.CachedIntrospectionResul ts <init>
    FINE: Found property 'transactionManagerName' of type [java.lang.String]
    15-10-2005 12:25:40 org.springframework.beans.CachedIntrospectionResul ts <init>
    FINE: Found property 'transactionSynchronization' of type [int]
    15-10-2005 12:25:40 org.springframework.beans.CachedIntrospectionResul ts <init>
    FINE: Found property 'transactionSynchronizationName' of type [java.lang.String]
    15-10-2005 12:25:40 org.springframework.beans.CachedIntrospectionResul ts <init>
    FINE: Found property 'userTransaction' of type [javax.transaction.UserTransaction]
    15-10-2005 12:25:40 org.springframework.beans.CachedIntrospectionResul ts <init>
    FINE: Found property 'userTransactionName' of type [java.lang.String]
    15-10-2005 12:25:40 org.springframework.beans.CachedIntrospectionResul ts forClass
    FINE: Class [org.springframework.transaction.jta.JtaTransaction Manager] is cache-safe
    15-10-2005 12:25:40 org.springframework.beans.factory.support.BeanDefi nitionValueResolver resolveReference
    FINE: Resolving reference from property 'userTransaction' in bean 'transactionManager' to bean 'jotm'
    15-10-2005 12:25:40 org.springframework.core.CollectionFactory createLinkedSetIfPossible
    FINE: Creating java.util.LinkedHashSet
    15-10-2005 12:25:40 org.springframework.beans.factory.support.Abstract BeanFactory getBean
    FINE: Creating shared instance of singleton bean 'jotm'
    15-10-2005 12:25:40 org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory createBean
    FINE: Creating instance of bean 'jotm' with merged definition [Root bean: class [org.springframework.transaction.jta.JotmFactoryBea n]; abstract=false; singleton=true; lazyInit=false; autowire=0; dependencyCheck=0; initMethodName=null; destroyMethodName=null; factoryMethodName=null; factoryBeanName=null; defined in file [C:\Documents and Settings\lni\IdeaProjects\ProofOfSpringTransaction Concept\tester\src\conf\test-mockejb-mockrunner.xml]]
    15-10-2005 12:25:40 org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory applyBeanPostProcessorsBeforeInstantiation
    FINE: Invoking BeanPostProcessors before instantiation of bean 'jotm'
    15-10-2005 12:25:40 org.objectweb.jotm.Jotm <init>
    INFO: JOTM started with a local transaction factory which is not bound.
    15-10-2005 12:25:40 org.objectweb.jotm.Jotm <init>
    INFO: CAROL initialization
    15-10-2005 12:25:40 org.objectweb.carol.util.configuration.Configurati onRepository getPropertiesFromURL
    FINE: Return empty properties, URL is null
    15-10-2005 12:25:40 org.objectweb.carol.util.configuration.Configurati onRepository init
    FINE: Build protocol object for protocol name found 'cmi'.
    15-10-2005 12:25:40 org.objectweb.carol.util.configuration.Configurati onRepository init
    FINE: Cmi is not available, don't configure it.
    15-10-2005 12:25:40 org.objectweb.carol.util.configuration.Configurati onRepository init
    FINE: Build protocol object for protocol name found 'jeremie'.
    15-10-2005 12:25:40 org.objectweb.carol.util.configuration.Configurati onRepository init
    FINE: Build protocol object for protocol name found 'iiop'.
    15-10-2005 12:25:40 org.objectweb.carol.util.configuration.Configurati onRepository init
    FINE: Build protocol object for protocol name found 'jrmp'.
    15-10-2005 12:25:40 org.objectweb.carol.util.configuration.Configurati onRepository init
    INFO: No protocols were defined for property 'carol.protocols', trying with default protocol = 'jrmp'.
    15-10-2005 12:25:40 sun.rmi.transport.tcp.TCPEndpoint <clinit>
    FINE: main: localHostKnown = true, localHost = 10.131.20.74
    15-10-2005 12:25:40 sun.rmi.transport.tcp.TCPTransport <init>
    FINE: main: Version = 2, ep = [10.131.20.74:0]
    15-10-2005 12:25:40 sun.rmi.transport.tcp.TCPEndpoint getLocalEndpoint
    FINE: main: created local endpoint for socket factory null on port 0
    15-10-2005 12:25:40 sun.rmi.transport.tcp.TCPTransport listen
    FINE: main: (port 0) create server socket
    15-10-2005 12:25:40 sun.rmi.transport.tcp.TCPEndpoint newServerSocket
    FINER: main: creating server socket on [10.131.20.74:0]
    15-10-2005 12:25:40 sun.rmi.transport.tcp.TCPEndpoint setDefaultPort
    FINE: main: default port for server socket factory null and client socket factory null set to 4626
    15-10-2005 12:25:40 sun.rmi.transport.WeakRef pin
    FINER: main: strongRef = sun.rmi.transport.DGCImpl@c79809
    15-10-2005 12:25:40 sun.rmi.transport.ObjectTable putTarget
    FINER: main: add object [0:0:0, 2]
    15-10-2005 12:25:40 sun.rmi.transport.ObjectTable putTarget
    FINER: main: add object [0]
    15-10-2005 12:25:40 sun.rmi.transport.tcp.TCPTransport run
    FINE: RMI TCP Accept-0: listening on port 4626
    15-10-2005 12:25:40 sun.rmi.server.UnicastServerRef computeMethodHash
    FINER: main: string used for method hash: "create(I)Lorg/objectweb/jotm/Control;"
    15-10-2005 12:25:40 sun.rmi.server.UnicastServerRef computeMethodHash
    FINER: main: string used for method hash: "getHostName()Ljava/lang/String;"
    15-10-2005 12:25:40 sun.rmi.server.UnicastServerRef computeMethodHash
    FINER: main: string used for method hash: "recreate(Lorg/objectweb/jotm/TransactionContextLorg/objectweb/jotm/Control;"
    15-10-2005 12:25:40 sun.rmi.server.UnicastServerRef computeMethodHash
    FINER: main: string used for method hash: "getPortNumber()I"
    15-10-2005 12:25:40 org.objectweb.jotm.TransactionFactoryImpl <init>
    FINE: default constructor
    15-10-2005 12:25:40 org.objectweb.jotm.Current <init>
    INFO: JOTM 2.0.10
    15-10-2005 12:25:40 org.objectweb.jotm.Current <init>
    FINE: TransactionFactory=org.objectweb.jotm.TransactionF actoryImpl@1428ea
    15-10-2005 12:25:40 org.objectweb.jotm.Batch <init>
    FINE: Batch constructor
    15-10-2005 12:25:40 org.objectweb.jotm.Clock <init>
    FINE: Clock constructor
    15-10-2005 12:25:40 org.objectweb.jotm.TransactionRecoveryImpl <init>
    FINE: TransactionRecoveryImpl constructor
    15-10-2005 12:25:40 org.objectweb.jotm.TransactionRecoveryImpl <init>
    FINE: JOTM Recovery is disabled
    15-10-2005 12:25:40 org.springframework.beans.CachedIntrospectionResul ts <init>
    FINE: Getting BeanInfo for class [org.springframework.transaction.jta.JotmFactoryBea n]
    15-10-2005 12:25:40 org.springframework.beans.CachedIntrospectionResul ts <init>
    FINE: Caching PropertyDescriptors for class [org.springframework.transaction.jta.JotmFactoryBea n]
    15-10-2005 12:25:40 org.springframework.beans.CachedIntrospectionResul ts <init>
    FINE: Found property 'class' of type [java.lang.Class]
    15-10-2005 12:25:40 org.springframework.beans.CachedIntrospectionResul ts <init>
    FINE: Found property 'jotm' of type [org.objectweb.jotm.Jotm]
    15-10-2005 12:25:40 org.springframework.beans.CachedIntrospectionResul ts <init>
    FINE: Found property 'object' of type [java.lang.Object]
    15-10-2005 12:25:40 org.springframework.beans.CachedIntrospectionResul ts <init>
    FINE: Found property 'objectType' of type [java.lang.Class]
    15-10-2005 12:25:40 org.springframework.beans.CachedIntrospectionResul ts <init>
    FINE: Found property 'singleton' of type [boolean]
    15-10-2005 12:25:40 org.springframework.beans.CachedIntrospectionResul ts forClass
    FINE: Class [org.springframework.transaction.jta.JotmFactoryBea n] is cache-safe
    15-10-2005 12:25:40 org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory applyBeanPostProcessorsBeforeInitialization
    FINE: Invoking BeanPostProcessors before initialization of bean 'jotm'
    15-10-2005 12:25:40 org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory applyBeanPostProcessorsAfterInitialization
    FINE: Invoking BeanPostProcessors after initialization of bean 'jotm'
    15-10-2005 12:25:40 org.springframework.beans.factory.support.Abstract BeanFactory getObjectForSharedInstance
    FINE: Bean with name 'jotm' is a factory bean
    15-10-2005 12:25:40 org.springframework.beans.BeanWrapperImpl setPropertyValue
    FINE: About to invoke write method [public void org.springframework.transaction.jta.JtaTransaction Manager.setUserTransaction(javax.transaction.UserT ransaction)] on object of class [org.springframework.transaction.jta.JtaTransaction Manager]
    15-10-2005 12:25:40 org.springframework.beans.BeanWrapperImpl setPropertyValue
    FINE: Invoked write method [public void org.springframework.transaction.jta.JtaTransaction Manager.setUserTransaction(javax.transaction.UserT ransaction)] with value of type [javax.transaction.UserTransaction]
    15-10-2005 12:25:40 org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory applyBeanPostProcessorsBeforeInitialization
    FINE: Invoking BeanPostProcessors before initialization of bean 'transactionManager'
    15-10-2005 12:25:40 org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory invokeInitMethods
    FINE: Invoking afterPropertiesSet() on bean with name 'transactionManager'
    15-10-2005 12:25:40 org.springframework.transaction.jta.JtaTransaction Manager findTransactionManager
    FINE: JTA UserTransaction object [org.objectweb.jotm.Current@1bb5c09] implements TransactionManager
    15-10-2005 12:25:40 org.springframework.transaction.jta.JtaTransaction Manager afterPropertiesSet
    INFO: Using JTA UserTransaction: org.objectweb.jotm.Current@1bb5c09
    15-10-2005 12:25:40 org.springframework.transaction.jta.JtaTransaction Manager afterPropertiesSet
    INFO: Using JTA TransactionManager: org.objectweb.jotm.Current@1bb5c09
    15-10-2005 12:25:40 org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory applyBeanPostProcessorsAfterInitialization
    FINE: Invoking BeanPostProcessors after initialization of bean 'transactionManager'
    15-10-2005 12:25:40 org.springframework.beans.factory.support.BeanDefi nitionValueResolver resolveReference
    FINE: Resolving reference from property 'target' in bean 'my-other-business' to bean 'other-business-target'
    15-10-2005 12:25:40 org.springframework.core.CollectionFactory createLinkedSetIfPossible
    FINE: Creating java.util.LinkedHashSet
    15-10-2005 12:25:40 org.springframework.beans.factory.support.Abstract BeanFactory getBean
    FINE: Creating shared instance of singleton bean 'other-business-target'
    15-10-2005 12:25:40 org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory createBean
    FINE: Creating instance of bean 'other-business-target' with merged definition [Root bean: class [dk.pfa.si.tests.spring.businesslogic.impl.MyOtherB usinessImpl]; abstract=false; singleton=true; lazyInit=false; autowire=0; dependencyCheck=0; initMethodName=null; destroyMethodName=null; factoryMethodName=null; factoryBeanName=null; defined in file [C:\Documents and Settings\lni\IdeaProjects\ProofOfSpringTransaction Concept\tester\src\conf\test-mockejb-mockrunner.xml]]
    15-10-2005 12:25:40 org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory applyBeanPostProcessorsBeforeInstantiation
    FINE: Invoking BeanPostProcessors before instantiation of bean 'other-business-target'
    15-10-2005 12:25:40 org.springframework.beans.CachedIntrospectionResul ts <init>
    FINE: Getting BeanInfo for class [dk.pfa.si.tests.spring.businesslogic.impl.MyOtherB usinessImpl]
    15-10-2005 12:25:40 org.springframework.beans.CachedIntrospectionResul ts <init>
    FINE: Caching PropertyDescriptors for class [dk.pfa.si.tests.spring.businesslogic.impl.MyOtherB usinessImpl]
    15-10-2005 12:25:40 org.springframework.beans.CachedIntrospectionResul ts <init>
    FINE: Found property 'applicationContext' of type [org.springframework.context.ApplicationContext]
    15-10-2005 12:25:40 org.springframework.beans.CachedIntrospectionResul ts <init>
    FINE: Found property 'class' of type [java.lang.Class]
    15-10-2005 12:25:40 org.springframework.beans.CachedIntrospectionResul ts forClass
    FINE: Class [dk.pfa.si.tests.spring.businesslogic.impl.MyOtherB usinessImpl] is cache-safe
    15-10-2005 12:25:40 org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory applyBeanPostProcessorsBeforeInitialization
    FINE: Invoking BeanPostProcessors before initialization of bean 'other-business-target'
    15-10-2005 12:25:40 org.springframework.context.support.ApplicationCon textAwareProcessor postProcessBeforeInitialization
    FINE: Invoking setApplicationContext on ApplicationContextAware bean 'other-business-target'
    15-10-2005 12:25:40 org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory applyBeanPostProcessorsAfterInitialization
    FINE: Invoking BeanPostProcessors after initialization of bean 'other-business-target'
    15-10-2005 12:25:40 org.springframework.beans.BeanWrapperImpl setPropertyValue
    FINE: About to invoke write method [public void org.springframework.transaction.interceptor.Transa ctionProxyFactoryBean.setTransactionManager(org.sp ringframework.transaction.PlatformTransactionManag er)] on object of class [org.springframework.transaction.interceptor.Transa ctionProxyFactoryBean]
    15-10-2005 12:25:40 org.springframework.beans.BeanWrapperImpl setPropertyValue
    FINE: Invoked write method [public void org.springframework.transaction.interceptor.Transa ctionProxyFactoryBean.setTransactionManager(org.sp ringframework.transaction.PlatformTransactionManag er)] with value of type [org.springframework.transaction.PlatformTransactio nManager]
    15-10-2005 12:25:40 org.springframework.beans.BeanWrapperImpl setPropertyValue
    FINE: About to invoke write method [public void org.springframework.transaction.interceptor.Transa ctionProxyFactoryBean.setTarget(java.lang.Object)] on object of class [org.springframework.transaction.interceptor.Transa ctionProxyFactoryBean]
    15-10-2005 12:25:40 org.springframework.beans.BeanWrapperImpl setPropertyValue
    FINE: Invoked write method [public void org.springframework.transaction.interceptor.Transa ctionProxyFactoryBean.setTarget(java.lang.Object)] with value of type [java.lang.Object]
    15-10-2005 12:25:40 org.springframework.beans.BeanWrapperImpl setPropertyValue
    FINE: About to invoke write method [public void org.springframework.transaction.interceptor.Transa ctionProxyFactoryBean.setTransactionAttributes(jav a.util.Properties)] on object of class [org.springframework.transaction.interceptor.Transa ctionProxyFactoryBean]
    15-10-2005 12:25:40 org.springframework.transaction.interceptor.NameMa tchTransactionAttributeSource addTransactionalMethod
    FINE: Adding transactional method [testRequiredNew] with attribute [PROPAGATION_REQUIRED,ISOLATION_DEFAULT]
    15-10-2005 12:25:40 org.springframework.beans.BeanWrapperImpl setPropertyValue
    FINE: Invoked write method [public void org.springframework.transaction.interceptor.Transa ctionProxyFactoryBean.setTransactionAttributes(jav a.util.Properties)] with value of type [java.util.Properties]
    15-10-2005 12:25:40 org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory createBean
    FINE: Invoking setBeanFactory on BeanFactoryAware bean 'my-other-business'
    15-10-2005 12:25:40 org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory applyBeanPostProcessorsBeforeInitialization
    FINE: Invoking BeanPostProcessors before initialization of bean 'my-other-business'
    15-10-2005 12:25:40 org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory invokeInitMethods
    FINE: Invoking afterPropertiesSet() on bean with name 'my-other-business'
    15-10-2005 12:25:40 org.springframework.core.CollectionFactory createIdentityMapIfPossible
    FINE: Creating java.util.IdentityHashMap
    15-10-2005 12:25:40 org.springframework.aop.framework.AdvisedSupport addInterface
    FINE: Added new aspect interface: dk.pfa.si.tests.spring.businesslogic.MyOtherBusine ss
    15-10-2005 12:25:40 org.springframework.aop.framework.AdvisedSupport addInterface
    FINE: Added new aspect interface: org.springframework.context.ApplicationContextAwar e
    15-10-2005 12:25:40 org.springframework.aop.framework.JdkDynamicAopPro xy getProxy
    FINE: Creating JDK dynamic proxy for [dk.pfa.si.tests.spring.businesslogic.impl.MyOtherB usinessImpl]
    15-10-2005 12:25:41 org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory applyBeanPostProcessorsAfterInitialization
    FINE: Invoking BeanPostProcessors after initialization of bean 'my-other-business'
    15-10-2005 12:25:41 org.springframework.beans.factory.support.Abstract BeanFactory getObjectForSharedInstance
    FINE: Calling code asked for FactoryBean instance for name 'my-other-business'
    15-10-2005 12:25:41 org.springframework.beans.factory.support.Abstract BeanFactory getBean
    FINE: Returning cached instance of singleton bean 'my-other-business'
    15-10-2005 12:25:41 org.springframework.beans.factory.support.Abstract BeanFactory getObjectForSharedInstance
    FINE: Bean with name 'my-other-business' is a factory bean
    15-10-2005 12:25:41 org.springframework.beans.factory.support.Abstract BeanFactory getBean
    FINE: Creating shared instance of singleton bean 'my-last-business'
    15-10-2005 12:25:41 org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory createBean
    FINE: Creating instance of bean 'my-last-business' with merged definition [Root bean: class [org.springframework.transaction.interceptor.Transa ctionProxyFactoryBean]; abstract=false; singleton=true; lazyInit=false; autowire=0; dependencyCheck=0; initMethodName=null; destroyMethodName=null; factoryMethodName=null; factoryBeanName=null; defined in file [C:\Documents and Settings\lni\IdeaProjects\ProofOfSpringTransaction Concept\tester\src\conf\test-mockejb-mockrunner.xml]]
    15-10-2005 12:25:41 org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory applyBeanPostProcessorsBeforeInstantiation
    FINE: Invoking BeanPostProcessors before instantiation of bean 'my-last-business'
    15-10-2005 12:25:41 org.springframework.beans.CachedIntrospectionResul ts forClass
    FINE: Using cached introspection results for class [org.springframework.transaction.interceptor.Transa ctionProxyFactoryBean]
    15-10-2005 12:25:41 org.springframework.beans.factory.support.BeanDefi nitionValueResolver resolveReference
    FINE: Resolving reference from property 'transactionManager' in bean 'my-last-business' to bean 'transactionManager'
    15-10-2005 12:25:41 org.springframework.beans.factory.support.Abstract BeanFactory getBean
    FINE: Returning cached instance of singleton bean 'transactionManager'
    15-10-2005 12:25:41 org.springframework.beans.factory.support.BeanDefi nitionValueResolver resolveReference
    FINE: Resolving reference from property 'target' in bean 'my-last-business' to bean 'last-business-target'
    15-10-2005 12:25:41 org.springframework.core.CollectionFactory createLinkedSetIfPossible
    FINE: Creating java.util.LinkedHashSet
    15-10-2005 12:25:41 org.springframework.beans.factory.support.Abstract BeanFactory getBean
    FINE: Creating shared instance of singleton bean 'last-business-target'
    15-10-2005 12:25:41 org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory createBean
    FINE: Creating instance of bean 'last-business-target' with merged definition [Root bean: class [dk.pfa.si.tests.spring.businesslogic.impl.MyLastBu sinessImpl]; abstract=false; singleton=true; lazyInit=false; autowire=0; dependencyCheck=0; initMethodName=null; destroyMethodName=null; factoryMethodName=null; factoryBeanName=null; defined in file [C:\Documents and Settings\lni\IdeaProjects\ProofOfSpringTransaction Concept\tester\src\conf\test-mockejb-mockrunner.xml]]
    15-10-2005 12:25:41 org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory applyBeanPostProcessorsBeforeInstantiation
    FINE: Invoking BeanPostProcessors before instantiation of bean 'last-business-target'
    15-10-2005 12:25:41 org.springframework.beans.CachedIntrospectionResul ts <init>
    FINE: Getting BeanInfo for class [dk.pfa.si.tests.spring.businesslogic.impl.MyLastBu sinessImpl]
    15-10-2005 12:25:41 org.springframework.beans.CachedIntrospectionResul ts <init>
    FINE: Caching PropertyDescriptors for class [dk.pfa.si.tests.spring.businesslogic.impl.MyLastBu sinessImpl]
    15-10-2005 12:25:41 org.springframework.beans.CachedIntrospectionResul ts <init>
    FINE: Found property 'class' of type [java.lang.Class]
    15-10-2005 12:25:41 org.springframework.beans.CachedIntrospectionResul ts forClass
    FINE: Class [dk.pfa.si.tests.spring.businesslogic.impl.MyLastBu sinessImpl] is cache-safe
    15-10-2005 12:25:41 org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory applyBeanPostProcessorsBeforeInitialization
    FINE: Invoking BeanPostProcessors before initialization of bean 'last-business-target'
    15-10-2005 12:25:41 org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory applyBeanPostProcessorsAfterInitialization
    FINE: Invoking BeanPostProcessors after initialization of bean 'last-business-target'
    15-10-2005 12:25:41 org.springframework.beans.BeanWrapperImpl setPropertyValue
    FINE: About to invoke write method [public void org.springframework.transaction.interceptor.Transa ctionProxyFactoryBean.setTransactionManager(org.sp ringframework.transaction.PlatformTransactionManag er)] on object of class [org.springframework.transaction.interceptor.Transa ctionProxyFactoryBean]
    15-10-2005 12:25:41 org.springframework.beans.BeanWrapperImpl setPropertyValue
    FINE: Invoked write method [public void org.springframework.transaction.interceptor.Transa ctionProxyFactoryBean.setTransactionManager(org.sp ringframework.transaction.PlatformTransactionManag er)] with value of type [org.springframework.transaction.PlatformTransactio nManager]
    15-10-2005 12:25:41 org.springframework.beans.BeanWrapperImpl setPropertyValue
    FINE: About to invoke write method [public void org.springframework.transaction.interceptor.Transa ctionProxyFactoryBean.setTarget(java.lang.Object)] on object of class [org.springframework.transaction.interceptor.Transa ctionProxyFactoryBean]
    15-10-2005 12:25:41 org.springframework.beans.BeanWrapperImpl setPropertyValue
    FINE: Invoked write method [public void org.springframework.transaction.interceptor.Transa ctionProxyFactoryBean.setTarget(java.lang.Object)] with value of type [java.lang.Object]
    15-10-2005 12:25:41 org.springframework.beans.BeanWrapperImpl setPropertyValue
    FINE: About to invoke write method [public void org.springframework.transaction.interceptor.Transa ctionProxyFactoryBean.setTransactionAttributes(jav a.util.Properties)] on object of class [org.springframework.transaction.interceptor.Transa ctionProxyFactoryBean]
    15-10-2005 12:25:41 org.springframework.transaction.interceptor.NameMa tchTransactionAttributeSource addTransactionalMethod
    FINE: Adding transactional method [testRequiredNew] with attribute [PROPAGATION_REQUIRES_NEW,ISOLATION_DEFAULT]
    15-10-2005 12:25:41 org.springframework.beans.BeanWrapperImpl setPropertyValue
    FINE: Invoked write method [public void org.springframework.transaction.interceptor.Transa ctionProxyFactoryBean.setTransactionAttributes(jav a.util.Properties)] with value of type [java.util.Properties]
    15-10-2005 12:25:41 org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory createBean
    FINE: Invoking setBeanFactory on BeanFactoryAware bean 'my-last-business'
    15-10-2005 12:25:41 org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory applyBeanPostProcessorsBeforeInitialization
    FINE: Invoking BeanPostProcessors before initialization of bean 'my-last-business'
    15-10-2005 12:25:41 org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory invokeInitMethods
    FINE: Invoking afterPropertiesSet() on bean with name 'my-last-business'
    15-10-2005 12:25:41 org.springframework.core.CollectionFactory createIdentityMapIfPossible
    FINE: Creating java.util.IdentityHashMap
    15-10-2005 12:25:41 org.springframework.aop.framework.AdvisedSupport addInterface
    FINE: Added new aspect interface: dk.pfa.si.tests.spring.businesslogic.MyLastBusines s
    15-10-2005 12:25:41 org.springframework.aop.framework.JdkDynamicAopPro xy getProxy
    FINE: Creating JDK dynamic proxy for [dk.pfa.si.tests.spring.businesslogic.impl.MyLastBu sinessImpl]
    15-10-2005 12:25:41 org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory applyBeanPostProcessorsAfterInitialization
    FINE: Invoking BeanPostProcessors after initialization of bean 'my-last-business'
    15-10-2005 12:25:41 org.springframework.beans.factory.support.Abstract BeanFactory getObjectForSharedInstance
    FINE: Calling code asked for FactoryBean instance for name 'my-last-business'
    15-10-2005 12:25:41 org.springframework.beans.factory.support.Abstract BeanFactory getBean
    FINE: Returning cached instance of singleton bean 'my-last-business'
    15-10-2005 12:25:41 org.springframework.beans.factory.support.Abstract BeanFactory getObjectForSharedInstance
    FINE: Bean with name 'my-last-business' is a factory bean
    15-10-2005 12:25:41 org.springframework.beans.factory.support.Abstract BeanFactory getBean
    FINE: Returning cached instance of singleton bean 'other-business-target'
    15-10-2005 12:25:41 org.springframework.beans.factory.support.Abstract BeanFactory getBean
    FINE: Returning cached instance of singleton bean 'last-business-target'
    15-10-2005 12:25:41 org.springframework.beans.factory.support.Abstract BeanFactory getBean
    FINE: Returning cached instance of singleton bean 'jotm'
    15-10-2005 12:25:41 org.springframework.beans.factory.support.Abstract BeanFactory getObjectForSharedInstance
    FINE: Calling code asked for FactoryBean instance for name 'jotm'
    15-10-2005 12:25:41 org.springframework.beans.factory.support.Abstract BeanFactory getBean
    FINE: Returning cached instance of singleton bean 'jotm'
    15-10-2005 12:25:41 org.springframework.beans.factory.support.Abstract BeanFactory getObjectForSharedInstance
    FINE: Bean with name 'jotm' is a factory bean
    15-10-2005 12:25:41 org.springframework.beans.factory.support.Abstract BeanFactory getBean
    FINE: Returning cached instance of singleton bean 'transactionManager'
    15-10-2005 12:25:41 org.springframework.context.support.AbstractApplic ationContext publishEvent
    FINE: Publishing event in context [org.springframework.context.support.FileSystemXmlA pplicationContext;hashCode=23910357]: org.springframework.context.event.ContextRefreshed Event[source=org.springframework.context.support.FileSys temXmlApplicationContext: display name [org.springframework.context.support.FileSystemXmlA pplicationContext;hashCode=23910357]; startup date [Sat Oct 15 12:25:39 CEST 2005]; root of context hierarchy]
    15-10-2005 12:25:41 org.springframework.beans.factory.support.Abstract BeanFactory getBean
    FINE: Returning cached instance of singleton bean 'my-other-business'
    15-10-2005 12:25:41 org.springframework.beans.factory.support.Abstract BeanFactory getObjectForSharedInstance
    FINE: Bean with name 'my-other-business' is a factory bean
    15-10-2005 12:25:41 org.springframework.transaction.interceptor.Transa ctionAspectSupport createTransactionIfNecessary
    FINE: Getting transaction for dk.pfa.si.tests.spring.businesslogic.MyOtherBusine ss.testRequiredNew
    15-10-2005 12:25:41 org.springframework.transaction.support.AbstractPl atformTransactionManager getTransaction
    FINE: Using transaction object [org.springframework.transaction.jta.JtaTransaction Object@186c730]
    15-10-2005 12:25:41 org.objectweb.jotm.Current getStatus
    FINE: Current.getStatus()
    15-10-2005 12:25:41 org.objectweb.jotm.Current getTransaction
    FINE: threadTx.get= java.lang.ThreadLocal@17f242c
    15-10-2005 12:25:41 org.objectweb.jotm.Current getTransaction
    FINE: Transaction ret= null
    15-10-2005 12:25:41 org.springframework.transaction.support.AbstractPl atformTransactionManager getTransaction
    FINE: Creating new transaction with name [dk.pfa.si.tests.spring.businesslogic.MyOtherBusine ss.testRequiredNew]
    15-10-2005 12:25:41 org.springframework.transaction.jta.JtaTransaction Manager doBegin
    FINE: Beginning JTA transaction
    15-10-2005 12:25:41 org.objectweb.jotm.Current begin
    FINE: begin transaction
    15-10-2005 12:25:41 org.objectweb.jotm.Current begin
    FINE: threadTx.get= java.lang.ThreadLocal@17f242c
    15-10-2005 12:25:41 org.objectweb.jotm.TransactionImpl <init>
    FINE: xid= bb14:38:0:017779f165cf2a8bfa...e96801:
    15-10-2005 12:25:41 org.objectweb.jotm.TransactionImpl <init>
    FINE: timeout= 60
    15-10-2005 12:25:41 org.objectweb.jotm.InternalTransactionContext <init>
    FINE: xid=bb14:38:0:017779f165cf2a8bfa...e96801:, timeout=60
    15-10-2005 12:25:41 org.objectweb.jotm.Current begin
    FINE: tx=bb14:38:0:017779f165cf2a8bfa...e96801:
    15-10-2005 12:25:41 org.objectweb.jotm.TransactionImpl doAttach
    FINE: TransactionImpl.doAttach flag= TMJOIN
    15-10-2005 12:25:41 org.objectweb.jotm.TransactionImpl doAttach
    FINE: number of enlisted= 0
    15-10-2005 12:25:41 org.objectweb.jotm.Current begin
    FINE: threadTx.set= java.lang.ThreadLocal@17f242c
    15-10-2005 12:25:41 org.objectweb.jotm.Current putTxXid
    FINE: Associate tx to xid (xid=bb14:38:0:017779f165cf2a8bfa...e96801
    15-10-2005 12:25:41 org.objectweb.jotm.TimerEvent <init>
    FINE: TimerEvent.new(bb14:38:0:017779f165cf2a8bfa...e968 01:,60,null,false)
    15-10-2005 12:25:41 org.objectweb.jotm.TransactionImpl setTimer
    FINE: set timer for tx (timer=org.objectweb.jotm.TimerEvent@e51b2c, tx=bb14:38:0:017779f165cf2a8bfa...e96801
    15-10-2005 12:25:41 org.objectweb.jotm.TransactionImpl setTxDate
    FINE: set date for tx (data=Sat Oct 15 12:25:41 CEST 2005, tx=bb14:38:0:017779f165cf2a8bfa...e96801
    15-10-2005 12:25:41 org.springframework.transaction.support.Transactio nSynchronizationManager initSynchronization
    FINE: Initializing transaction synchronization
    15-10-2005 12:25:41 org.springframework.beans.factory.support.Abstract BeanFactory getBean
    FINE: Returning cached instance of singleton bean 'my-last-business'
    15-10-2005 12:25:41 org.springframework.beans.factory.support.Abstract BeanFactory getObjectForSharedInstance
    FINE: Bean with name 'my-last-business' is a factory bean
    15-10-2005 12:25:41 org.springframework.transaction.interceptor.Transa ctionAspectSupport createTransactionIfNecessary
    FINE: Getting transaction for dk.pfa.si.tests.spring.businesslogic.MyLastBusines s.testRequiredNew
    15-10-2005 12:25:41 org.springframework.transaction.support.AbstractPl atformTransactionManager getTransaction
    FINE: Using transaction object [org.springframework.transaction.jta.JtaTransaction Object@2acc57]
    15-10-2005 12:25:41 org.objectweb.jotm.Current getStatus
    FINE: Current.getStatus()
    15-10-2005 12:25:41 org.objectweb.jotm.Current getTransaction
    FINE: threadTx.get= java.lang.ThreadLocal@17f242c
    15-10-2005 12:25:41 org.objectweb.jotm.Current getTransaction
    FINE: Transaction ret= bb14:38:0:017779f165cf2a8bfa...e96801:
    15-10-2005 12:25:41 org.objectweb.jotm.TransactionImpl getStatus
    FINE: TransactionImpl.getStatus()
    15-10-2005 12:25:41 org.springframework.transaction.support.AbstractPl atformTransactionManager handleExistingTransaction
    FINE: Suspending current transaction, creating new transaction with name [dk.pfa.si.tests.spring.businesslogic.MyLastBusines s.testRequiredNew]
    15-10-2005 12:25:41 org.springframework.transaction.jta.JtaTransaction Manager doSuspend
    FINE: Suspending JTA transaction
    15-10-2005 12:25:41 org.objectweb.jotm.Current suspend
    FINE: suspend transaction
    15-10-2005 12:25:41 org.objectweb.jotm.Current suspend
    FINE: threadTx.get= java.lang.ThreadLocal@17f242c
    15-10-2005 12:25:41 org.objectweb.jotm.Current suspend
    FINE: tx=bb14:38:0:017779f165cf2a8bfa...e96801:
    15-10-2005 12:25:41 org.objectweb.jotm.TransactionImpl doDetach
    FINE: TransactionImpl.doDetach flag= TMSUSPEND
    15-10-2005 12:25:41 org.objectweb.jotm.TransactionImpl doDetach
    FINE: number of enlisted= 0
    15-10-2005 12:25:41 org.objectweb.jotm.Current suspend
    FINE: threadTx.set= null
    15-10-2005 12:25:41 org.springframework.transaction.support.Transactio nSynchronizationManager clearSynchronization
    FINE: Clearing transaction synchronization
    15-10-2005 12:25:41 org.springframework.transaction.jta.JtaTransaction Manager doBegin
    FINE: Beginning JTA transaction
    15-10-2005 12:25:41 org.objectweb.jotm.Current begin
    FINE: begin transaction
    15-10-2005 12:25:41 org.objectweb.jotm.Current begin
    FINE: threadTx.get= java.lang.ThreadLocal@17f242c
    15-10-2005 12:25:41 org.objectweb.jotm.TransactionImpl <init>
    FINE: xid= bb14:38:0:017779f165cf2a8bfa...ea5802:
    15-10-2005 12:25:41 org.objectweb.jotm.TransactionImpl <init>
    FINE: timeout= 60
    15-10-2005 12:25:41 org.objectweb.jotm.InternalTransactionContext <init>
    FINE: xid=bb14:38:0:017779f165cf2a8bfa...ea5802:, timeout=60
    15-10-2005 12:25:41 org.objectweb.jotm.Current begin
    FINE: tx=bb14:38:0:017779f165cf2a8bfa...ea5802:
    15-10-2005 12:25:41 org.objectweb.jotm.TransactionImpl doAttach
    FINE: TransactionImpl.doAttach flag= TMJOIN
    15-10-2005 12:25:41 org.objectweb.jotm.TransactionImpl doAttach
    FINE: number of enlisted= 0
    15-10-2005 12:25:41 org.objectweb.jotm.Current begin
    FINE: threadTx.set= java.lang.ThreadLocal@17f242c
    15-10-2005 12:25:41 org.objectweb.jotm.Current putTxXid
    FINE: Associate tx to xid (xid=bb14:38:0:017779f165cf2a8bfa...ea5802
    15-10-2005 12:25:41 org.objectweb.jotm.TimerEvent <init>
    FINE: TimerEvent.new(bb14:38:0:017779f165cf2a8bfa...ea58 02:,60,null,false)
    15-10-2005 12:25:41 org.objectweb.jotm.TransactionImpl setTimer
    FINE: set timer for tx (timer=org.objectweb.jotm.TimerEvent@1947496, tx=bb14:38:0:017779f165cf2a8bfa...ea5802
    15-10-2005 12:25:41 org.objectweb.jotm.TransactionImpl setTxDate
    FINE: set date for tx (data=Sat Oct 15 12:25:41 CEST 2005, tx=bb14:38:0:017779f165cf2a8bfa...ea5802
    15-10-2005 12:25:41 org.springframework.transaction.support.Transactio nSynchronizationManager initSynchronization
    FINE: Initializing transaction synchronization
    15-10-2005 12:25:41 org.springframework.transaction.interceptor.Transa ctionAspectSupport doCommitTransactionAfterReturning
    FINE: Invoking commit for transaction on dk.pfa.si.tests.spring.businesslogic.MyLastBusines s.testRequiredNew
    15-10-2005 12:25:41 org.springframework.transaction.support.AbstractPl atformTransactionManager triggerBeforeCommit
    FINE: Triggering beforeCommit synchronization
    15-10-2005 12:25:41 org.springframework.transaction.support.AbstractPl atformTransactionManager triggerBeforeCompletion
    FINE: Triggering beforeCompletion synchronization
    15-10-2005 12:25:41 org.springframework.transaction.support.AbstractPl atformTransactionManager processCommit
    FINE: Initiating transaction commit
    15-10-2005 12:25:41 org.objectweb.jotm.Current getStatus
    FINE: Current.getStatus()
    15-10-2005 12:25:41 org.objectweb.jotm.Current getTransaction
    FINE: threadTx.get= java.lang.ThreadLocal@17f242c
    15-10-2005 12:25:41 org.objectweb.jotm.Current getTransaction
    FINE: Transaction ret= bb14:38:0:017779f165cf2a8bfa...ea5802:
    15-10-2005 12:25:41 org.objectweb.jotm.TransactionImpl getStatus
    FINE: TransactionImpl.getStatus()
    15-10-2005 12:25:41 org.springframework.transaction.jta.JtaTransaction Manager doCommit
    FINE: Committing JTA transaction
    15-10-2005 12:25:41 org.objectweb.jotm.Current commit
    FINE: commit transaction
    15-10-2005 12:25:41 org.objectweb.jotm.Current getTransaction
    FINE: threadTx.get= java.lang.ThreadLocal@17f242c
    15-10-2005 12:25:41 org.objectweb.jotm.Current getTransaction
    FINE: Transaction ret= bb14:38:0:017779f165cf2a8bfa...ea5802:
    15-10-2005 12:25:41 org.objectweb.jotm.Current commit
    FINE: tx=bb14:38:0:017779f165cf2a8bfa...ea5802:
    15-10-2005 12:25:41 org.objectweb.jotm.TransactionImpl commit
    FINE: TransactionImpl.commit (tx= bb14:38:0:017779f165cf2a8bfa...ea5802
    15-10-2005 12:25:41 org.objectweb.jotm.TransactionImpl unsetTimer
    FINE: unset timer for tx (timer=org.objectweb.jotm.TimerEvent@1947496, tx=bb14:38:0:017779f165cf2a8bfa...ea5802
    15-10-2005 12:25:41 org.objectweb.jotm.TimerEvent unset
    FINE: TimerEvent(bb14:38:0:017779f165cf2a8bfa...ea5802.unset
    15-10-2005 12:25:41 org.objectweb.jotm.Current forgetTx
    FINE: threadTx.set = null
    15-10-2005 12:25:41 org.objectweb.jotm.Current removeTxXid
    FINE: remove tx from xid (xid=bb14:38:0:017779f165cf2a8bfa...ea5802
    15-10-2005 12:25:41 org.objectweb.jotm.Current commit
    FINE: threadTx.set= null
    15-10-2005 12:25:41 org.objectweb.jotm.Current commit
    FINE: reset timeout= 60
    15-10-2005 12:25:41 org.springframework.transaction.support.AbstractPl atformTransactionManager triggerAfterCompletion
    FINE: Triggering afterCompletion synchronization
    15-10-2005 12:25:41 org.springframework.transaction.support.Transactio nSynchronizationManager clearSynchronization
    FINE: Clearing transaction synchronization
    15-10-2005 12:25:41 org.springframework.transaction.support.AbstractPl atformTransactionManager cleanupAfterCompletion
    FINE: Resuming suspended transaction
    15-10-2005 12:25:41 org.springframework.transaction.support.Transactio nSynchronizationManager initSynchronization
    FINE: Initializing transaction synchronization
    15-10-2005 12:25:41 org.springframework.transaction.jta.JtaTransaction Manager doResume
    FINE: Resuming JTA transaction
    15-10-2005 12:25:41 org.objectweb.jotm.Current resume
    FINE: resume transaction
    15-10-2005 12:25:41 org.objectweb.jotm.Current resume
    FINE: tx=bb14:38:0:017779f165cf2a8bfa...e96801:
    15-10-2005 12:25:41 org.objectweb.jotm.Current resume
    FINE: threadTx.get= java.lang.ThreadLocal@17f242c
    15-10-2005 12:25:41 org.objectweb.jotm.Current resume
    FINE: threadTx.set= java.lang.ThreadLocal@17f242c
    15-10-2005 12:25:41 org.objectweb.jotm.TransactionImpl doAttach
    FINE: TransactionImpl.doAttach flag= TMRESUME
    15-10-2005 12:25:41 org.objectweb.jotm.TransactionImpl doAttach
    FINE: number of enlisted= 0
    15-10-2005 12:25:41 org.springframework.transaction.interceptor.Transa ctionAspectSupport doCommitTransactionAfterReturning
    FINE: Invoking commit for transaction on dk.pfa.si.tests.spring.businesslogic.MyOtherBusine ss.testRequiredNew
    15-10-2005 12:25:41 org.springframework.transaction.support.AbstractPl atformTransactionManager triggerBeforeCommit
    FINE: Triggering beforeCommit synchronization
    15-10-2005 12:25:41 org.springframework.transaction.support.AbstractPl atformTransactionManager triggerBeforeCompletion
    FINE: Triggering beforeCompletion synchronization
    15-10-2005 12:25:41 org.springframework.transaction.support.AbstractPl atformTransactionManager processCommit
    FINE: Initiating transaction commit
    15-10-2005 12:25:41 org.objectweb.jotm.Current getStatus
    FINE: Current.getStatus()
    15-10-2005 12:25:41 org.objectweb.jotm.Current getTransaction
    FINE: threadTx.get= java.lang.ThreadLocal@17f242c
    15-10-2005 12:25:41 org.objectweb.jotm.Current getTransaction
    FINE: Transaction ret= bb14:38:0:017779f165cf2a8bfa...e96801:
    15-10-2005 12:25:41 org.objectweb.jotm.TransactionImpl getStatus
    FINE: TransactionImpl.getStatus()
    15-10-2005 12:25:41 org.springframework.transaction.jta.JtaTransaction Manager doCommit
    FINE: Committing JTA transaction
    15-10-2005 12:25:41 org.objectweb.jotm.Current commit
    FINE: commit transaction
    15-10-2005 12:25:41 org.objectweb.jotm.Current getTransaction
    FINE: threadTx.get= java.lang.ThreadLocal@17f242c
    15-10-2005 12:25:41 org.objectweb.jotm.Current getTransaction
    FINE: Transaction ret= bb14:38:0:017779f165cf2a8bfa...e96801:
    15-10-2005 12:25:41 org.objectweb.jotm.Current commit
    FINE: tx=bb14:38:0:017779f165cf2a8bfa...e96801:
    15-10-2005 12:25:41 org.objectweb.jotm.TransactionImpl commit
    FINE: TransactionImpl.commit (tx= bb14:38:0:017779f165cf2a8bfa...e96801
    15-10-2005 12:25:41 org.objectweb.jotm.TransactionImpl unsetTimer
    FINE: unset timer for tx (timer=org.objectweb.jotm.TimerEvent@e51b2c, tx=bb14:38:0:017779f165cf2a8bfa...e96801
    15-10-2005 12:25:41 org.objectweb.jotm.TimerEvent unset
    FINE: TimerEvent(bb14:38:0:017779f165cf2a8bfa...e96801.unset
    15-10-2005 12:25:41 org.objectweb.jotm.Current forgetTx
    FINE: threadTx.set = null
    15-10-2005 12:25:41 org.objectweb.jotm.Current removeTxXid
    FINE: remove tx from xid (xid=bb14:38:0:017779f165cf2a8bfa...e96801
    15-10-2005 12:25:41 org.objectweb.jotm.Current commit
    FINE: threadTx.set= null
    15-10-2005 12:25:41 org.objectweb.jotm.Current commit
    FINE: reset timeout= 60
    15-10-2005 12:25:41 org.springframework.transaction.support.AbstractPl atformTransactionManager triggerAfterCompletion
    FINE: Triggering afterCompletion synchronization
    15-10-2005 12:25:41 org.springframework.transaction.support.Transactio nSynchronizationManager clearSynchronization
    FINE: Clearing transaction synchronization
    15-10-2005 12:25:41 org.springframework.beans.factory.support.Abstract BeanFactory getBean
    FINE: Returning cached instance of singleton bean 'jotm'
    15-10-2005 12:25:41 org.springframework.beans.factory.support.Abstract BeanFactory getObjectForSharedInstance
    FINE: Bean with name 'jotm' is a factory bean
    [0, 0, 0, 0, 0]

  • #2
    extend the JtaTransactionManager so it keeps count of the commits, rollbacks, ... wow

    Lars

    Comment

    Working...
    X