How do I profile all database activity in a Java Spring/Hibernate application? -



How do I profile all database activity in a Java Spring/Hibernate application? -

i record (almost) database activity http requests in spring/hibernate web application using @aspect , handlerinterceptor.

ideally, wrap @aspect @around calls java.sql.statement.execute, since class java , may not utilize same class loader, have settle sec best.

i have @aspect working calls jdbctemplate using execution(* org.springframework.jdbc.core.jdbcoperations.*(string, ..)) pointcut explained here, need database activity invoked hibernate.

does have advice on this? i'm suggestions.

my suggestion utilize aspectj instead of spring aop. usage within spring applications documented. have total aop power, e.g. can utilize call() pointcuts , many more instead of execution(), apply aspects classes not spring beans , forth.

java spring hibernate aop aspectj

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -