How to create log4j category on JBoss EAP 6 Management Console to filter Oracle ping database status messages?

Solution Verified - Updated -

Issue

While trying to create/validate database connections, the JBoss datasource pings the database. If the database is closed it returns -1 status and JBoss prints the message on log file. Whether the ping test fails frequently a heavy occurrency of WARN messages will be printed on log file.

WARN  [org.jboss.jca.adapters.jdbc.local.LocalManagedConnectionFactory] (host-controller-connection-threads - 119) Destroying connection that is not valid, due to the following exception: oracle.jdbc.driver.T4CConnection@25a09181: java.sql.SQLException: pingDatabase failed status=-1
  • How to create log4j category on JBoss EAP 6 Management Console to filter Oracle ping database status messages?

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP) 6.x
    • Standalone mode
    • Domain mode

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In