java - How to log JPA/SQL queries with JavaMelody? -



java - How to log JPA/SQL queries with JavaMelody? -

i have found next manual https://code.google.com/p/javamelody/wiki/userguideadvanced#jpa_monitoring

it contains info regarding changes should create in persistence.xml in order allow javamelody gather jpa/sql statistics.

however, it's not quite clear me, whether should replace existing provider javamelody-provider, or should set separate persistence unit?

i tried former option, broken application (build failed error 'cannot cast proxy entitymanagerfactory').

java jpa persistence.xml java-melody

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -