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.