Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
spring-projects-issues opened this issue Feb 7, 2010 · 0 comments
Closed
Assignees
Labels
type: enhancement A general enhancement
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

2 participants