The only solution I can come up with is to write a decorator class that decorates each and every method of SimpleJdbcTemplate, and logs the time taken.
Do you have any thing better??
views:
25answers:
1
+2
A:
You can use Spring AOP.
Check here for a tutorial on how to achieve this.
Faisal Feroz
2010-10-21 13:57:37
+1. Write a simple aspect. We wrote an aspect to log every SQL that is being done, would be very similar to time them.
bwawok
2010-10-21 14:14:24