Skip to main content


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 23:05 Go to next message
Sasi Kumar is currently offline Sasi KumarFriend
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 07:11 Go to previous messageGo to next message
Jorg Heymans is currently offline Jorg HeymansFriend
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 16:40 Go to previous message
James Sutherland is currently offline James SutherlandFriend
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 Apr 19 12:34:43 GMT 2024

Powered by FUDForum. Page generated in 0.01925 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top