Configuring the DataSource jndi name in openejb to JBoss specific

1.2k Views Asked by At

How to change the JNDI name (java:/openejb/Resource/MysqlDS) in the OpenEJB embedded Container to suite JBoss specific (java:/MysqlDS) in a Testcase for unit testing. Can this be configured in Resource injection of DataSource?

1

There are 1 best solutions below

1
On

Normally you can change the JNDI name template using openejb.jndiname.format property. See embedded configuration for an example and Jndi-names for the supported templates.