Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » show_sql turn off at runtime
show_sql turn off at runtime [message #991234] Mon, 17 December 2012 18:05 Go to next message
Sasi Kumar is currently offline Sasi Kumar
Messages: 1
Registered: March 2011
Junior Member
Hi All,

I want to disable or enable show_sql property in persistence.xml at runtime with out restarting WebSphere Server or the Application. Is there any way to achieve it?

Thanks,
Sasi
Re: show_sql turn off at runtime [message #991436 is a reply to message #991234] Wed, 19 December 2012 02:11 Go to previous messageGo to next message
Jorg Heymans is currently offline Jorg Heymans
Messages: 26
Registered: July 2009
Location: Belgium
Junior Member
We route eclipselink logging through slf4j and logback and control the show_sql through a simple logging category in logback.xml. Logback allows to change its configuration without restarting the application, so that's a way of doing it.
Re: show_sql turn off at runtime [message #991526 is a reply to message #991436] Wed, 19 December 2012 11:40 Go to previous message
James Sutherland is currently offline James Sutherland
Messages: 1939
Registered: July 2009
Location: Ottawa, Canada
Senior Member

EclipseLink supports MBeans, that I believe allow for this. You could also just have your own code that sets the Session log level, or integrate EclipseLink with another logger.


James : Wiki : Book : Blog : Twitter
Previous Topic:hooks
Next Topic:Maintain Insert order while inserting in a table
Goto Forum:
  


Current Time: Fri Aug 01 05:50:37 EDT 2014

Powered by FUDForum. Page generated in 0.01503 seconds