Why not just override the default jndi name to a jndi name of your choice? That way you don't have to worry about the .ear file name. See this for details http://docs.jboss.org/ejb3/docs/tutorial/1.0.7/html/JNDI_Bindings.html
Reply to this message by going to Community
Start a new discussion in JNDI and Naming at Community