Aspects do not only intercept the service layer but also the data transaction layer. This recipe will give us a concrete scenario when AOP is needed in most DAO transactions. Aspects implemented for the DAO layer are just limited to logging, tracing, and validating tasks due to undesirable effects when transactions become complex.
Managing DAO transactions
Getting started
Open ch05 and add an @Aspect that will filter null record(s) from JdbcSimpleInsert and JdbcTemplate.
How to do it...
Our first AOP implementation will be applied for managing DAO transactions. Follow...