-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Tracking all SQLs by Hibernate on each Session
PostPosted: Wed Oct 03, 2007 5:10 pm 
Newbie

Joined: Fri Jan 07, 2005 10:38 am
Posts: 5
Hi everyone,

I am trying to figure out a way to track all SQLs and their execution times inside each Session. I know about log4j's org.hibernate.SQL and the statistics listener but those options don't seem to do the trick for me.

I am trying to come up with some kind of monitor which will log all SQLs executed on a Session if the sum of execution times exceed a certain value.

Does anyone have any idea how I can accomplish that?

Thank you in advance,
Felipe


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 09, 2007 4:02 pm 
Regular
Regular

Joined: Fri Feb 09, 2007 3:47 pm
Posts: 56
I have a similar but different request. I'd like to keep track of all the sql generated for a particular thread and log the sql if an error occurs. Is there an easy way to hook into this functionlity?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.