Testing datasource pool connections using CLI in JBoss EAP

Solution Verified - Updated -

Issue

  • Test JDBC connection to the data source through the JBoss CLI command for standalone or domain configuration
  • Verify database connectivity for JBoss EAP
  • When we are trying to test DB connection we are getting below error:
"WFLYJCA0040: failed to invoke operation: WFLYJCA0042: failed to match pool. Check JndiName: java:/databasename"

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6
    • 7

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content