Skip to content

@Transactional("transactionManager") and logging [SPR-6811] #11477

@spring-projects-issues

Description

@spring-projects-issues

Michael Isvy opened SPR-6811 and commented

Starting from Spring 3.0 I now can declare the transactionManager inside my @Transactional annotation as follows:

@Transactional("transactionManager")
public void updateClient(Client client) {
...
}

It would be nice if the existing loggers could show information about which transactionManager we are currenty using.

I am especially thinking of 2 specific loggers: the ones for DataSourceTransactionManager and AnnotationTransactionAttributeSource.

DEBUG: org.springframework.jdbc.datasource.DataSourceTransactionManager - Creating new transaction with name [testCollision1stTime]: PROPAGATION_REQUIRED,ISOLATION_DEFAULT
DEBUG: org.springframework.transaction.annotation.AnnotationTransactionAttributeSource - Adding transactional method [dao1UpdateAccount] with attribute [PROPAGATION_REQUIRED,ISOLATION_DEFAULT,readOnly]


Affects: 3.0 GA

Referenced from: commits f0bb45a

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions