-->
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: Desire to trace SQL on a per request/session basis
PostPosted: Fri Jun 25, 2004 6:00 pm 
Newbie

Joined: Fri Jun 25, 2004 5:50 pm
Posts: 3
We are implementing an application hosted on a web application server. In production, many (thousands) of concurrent users will access the system. We have created systems in the past where we offered a per-request trace option. This is needed because dumping all SQL traces for all users can be expensive, and obscure what we want to see. By setting a trace checkbox in the browser in our application, the server knows that all SQL in the code path of a particular user request (e.g. thread) should be dumped, even if the default "global" settings would otherwise disable such tracing.

We want to implement similar functionality using Hibernate 2.1.4, but we seem to be stuck because SQL tracing appears to be handled statically, and not amenable to per-thread or per-session overrides. Has anyone else addressed this sort of requirement while using Hibernate? It would seem ideal if we could configure a hibernate session object to force SQL tracing.

_________________
Felix Hack
felix_hack@splwg.com


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jun 26, 2004 9:51 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
Should be possible to do this by implementing a log4j appender.


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.