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, 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