Skip to content

@Transactional("transactionManager") and error handling [SPR-6810] #11476

@spring-projects-issues

Description

@spring-projects-issues

Michael Isvy opened SPR-6810 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) {
...
}

However, if I try that with a transactionManager that does not exist (such as @Transactional("foo")), there is no error message. I believe it just ignores the annotation.
It would be much safer if I had an error at startup saying that the transactionManager does not exist.


Affects: 3.0 GA

Referenced from: commits c5c38c6

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions