Hello,
I use annotation-based declarative transaction management and compile-time weaving within an abstract @Service class.
When running my code, I see log entries like this:
In my initial context.xml, there is a transactionManager defined:Code:... 17:38:11.990 [main] DEBUG o.s.t.a.AnnotationTransactionAttributeSource - Adding transactional method 'findAll' with attribute: PROPAGATION_REQUIRED,ISOLATION_DEFAULT; '' 17:38:11.990 [main] DEBUG o.s.t.a.AnnotationTransactionAspect - Skipping transactional joinpoint [ams.service.AbstractService.findAll] because no transaction manager has been configured 17:38:12.006 [main] DEBUG o.s.o.j.SharedEntityManagerCreator$SharedEntityManagerInvocationHandler - Creating new EntityManager for shared EntityManager invocation ... 17:38:15.459 [main] DEBUG o.s.o.jpa.EntityManagerFactoryUtils - Closing JPA EntityManager ...
I use SpringFramework 3.0.5.RELEASE.Code:<context:spring-configured /> <context:annotation-config /> <tx:annotation-driven transaction-manager="transactionManager" mode="aspectj" /> <bean id="transactionManager" class="org.springframework.orm.jpa.JpaTransactionManager"> <property name="entityManagerFactory" ref="entityManagerFactory" /> </bean> <bean id="entityManagerFactory" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean"> <property name="dataSource" ref="dataSource" /> <property name="persistenceUnitName" value="AMS" /> <property name="jpaVendorAdapter"> <bean id="jpaAdapter" class="org.springframework.orm.jpa.vendor.EclipseLinkJpaVendorAdapter"> <property name="database" value="H2" /> <property name="generateDdl" value="true" /> <property name="showSql" value="false" /> </bean> </property> </bean>
Why do I get this message? How can I avoid it?
Best regards,
Lars
PS: When compiling the sources, I see this warning. Does it matter?
Code:[WARNING] advice defined in org.springframework.mock.staticmock.AnnotationDrivenStaticEntityMockingControl has not been applied [Xlint:adviceDidNotMatch] [WARNING] advice defined in org.springframework.mock.staticmock.AbstractMethodMockingControl has not been applied [Xlint:adviceDidNotMatch] [WARNING] advice defined in org.springframework.mock.staticmock.AbstractMethodMockingControl has not been applied [Xlint:adviceDidNotMatch] [WARNING] advice defined in org.springframework.scheduling.aspectj.AbstractAsyncExecutionAspect has not been applied [Xlint:adviceDidNotMatch]


Reply With Quote
