I was able to solve the problem by using the log4jdbc logger (https://code.google.com/p/log4jdbc/)
It incercepts all the jdbc calls, it takes their roundrip time and it writes one log entry with the cumulative time.
Reply to this message by going to Community
Start a new discussion in Performance Tuning at Community