tags:

views:

25

answers:

1
  • 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??

+2  A: 

You can use Spring AOP.

Check here for a tutorial on how to achieve this.

Faisal Feroz
+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