How to add a custom jar for custom ValidConnectionChecker class in EAP6?
Issue
- We would like to use our own implementation for
ValidConnectionChecker
and 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
ExceptionSorter
orStaleConnectionChecker
.
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 6.x
- 7.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.