How to use the expression in jndi name attribute of datasource subsystem in JBoss EAP 6?
Issue
- Is it possible to use the expression in the
jndi-nameattribute of datasource subsystem in JBoss EAP 6? - Unable to test the datasource if expression is used in the
jndi nameattribute 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.