How to add a custom jar for custom ValidConnectionChecker class in EAP6?
Issue
- We would like to use our own implementation for
ValidConnectionCheckerand load it in the same datasourec configuration. - The custom ValidConnectionChecker class is not getting picked up, giving the following exception:
15:38:00,137 WARN [org.jboss.jca.adapters.jdbc.local.LocalManagedConnectionFactory] (ConnectionValidator) Exception trying to create valid connection checker (disabling):: java.lang.Exception: Unable to load: abc.xyz.ValidConnectionChecker
at org.jboss.jca.adapters.jdbc.BaseWrapperManagedConnectionFactory.loadPlugin(BaseWrapperManagedConnectionFactory.java:1027)
at org.jboss.jca.adapters.jdbc.BaseWrapperManagedConnectionFactory.isValidConnection(BaseWrapperManagedConnectionFactory.java:1104)
at org.jboss.jca.adapters.jdbc.BaseWrapperManagedConnection.checkValid(BaseWrapperManagedConnection.java:518)
- We would like to use our custom implementation of
ExceptionSorterorStaleConnectionChecker.
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 6.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
