We are starting a new project and want to follow the best practices.
Which one is better either Spring AOP or Annotation based for the Tx Management.
Spring AOP - in this tx management will be defined in xml file only. And only xml file can be modified to manage the transactions.
Annotation based - Here we specify the transaction with @Transactional in the
Java Code. In this approach transactions are all over in the Java Code.
I was able to see both the approaches in many places in internet. So got confused.
Any suggestions are helpful. Thanks in advance.