Skip to main content



      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
Eclipse UserFriend
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
Eclipse UserFriend
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
Eclipse UserFriend
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.
Previous Topic:hooks
Next Topic:Maintain Insert order while inserting in a table
Goto Forum:
  


Current Time: Sat Nov 08 21:09:28 EST 2025

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

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

Back to the top