How to use the expression in jndi name attribute of datasource subsystem in JBoss EAP 6?

Solution Unverified - Updated -

Issue

  • Is it possible to use the expression in the jndi-name attribute of datasource subsystem in JBoss EAP 6?
  • Unable to test the datasource if expression is used in the jndi name attribute of datasource and below is error messages:
[standalone@localhost:9999 /] /subsystem=datasources/data-source=ExampleDS:test-connection-in-pool()
{
    "outcome" => "failed",
    "failure-description" => "JBAS010440: failed to invoke operation: JBAS010442: failed to match pool. Check JndiName: java:/${ds}",
    "rolled-back" => true
}

Environment

  • Red Hat 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.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.