I have two transactional methods A and B. A has isolation level of READ_COMMITTED and B has isolation level of SERIALIZABLE. if B was called inside A, what would be the default behavior here?
- is spring going to create a new transaction for B or it will be run in the same transaction? would the isolation level of B be handled correctly?
- in case of two threads are accessing A at the same time, what would happen when they reach B call?
- In case of B's transaction was rolled back for some reason, would A's transaction be rolled back as well?
Note: let us assume that propagation level is the default one for both A and B.
Any ideas about what happens in such a situation?