I am currently working with a filter that I added in web.xml (J2EE App) This filter need to be activated/deactivated from a value stored in database.
How to make sure that the database connection is not opened every single request witch will exhaust the server ? Any ideas ?