This content has been marked as final.
Show 1 reply
-
1. Re: Replacement for <jndi-name> of jboss.xml to allow versioned ear names?
jaikiran Sep 28, 2012 6:41 AM (in response to michael-s)michael-s wrote:
We use versioned ear names because it makes integration testing of several components much easier.
Is there any way to use versioned ear names in JBoss7 without changing jndi names all the time?
The EE spec allows you to specify a different application-name, module-name for those JNDI names via the deployment descriptors. By default the values for those are the same name as the file names. However, you can set them to a name of your choice. For the application-name, you can set it in the application.xml (see version 6 xsd). For module-name, depending on what module it is you can either set it in ejb-jar.xml (for EJB module) or web.xml (for web/war module). See their respective XSDs.