I'm using Spring 3.0, and I have a set of methods like this:
@Transactional (value = "authTransactionManager")
public void remove(User user) {
...
}
I use 2 different transaction managers and specify necessary manager (authTransactionManager
in example above).
I was curious what would happen if I specify nonexistent manager. I expected compile exception or runtime exception, but everything worked fine. That's why I have doubts about any transactions were ever supported in my methods.
How can I test it? (maybe, spring is so smart that uses any available manager when nonexistent manager specified and all my doubts are unfounded?)