Hello everyone, I use different container to call EJB3(EJB on JBOSS AS 7.1 and Struts2 on Tomcat 7.0). So I need using JNDI to lookup EJB service.
But the JNDI name is very very long(ejb:[EAR Project name]/[EJB project name]/[Distinct Name]/[Session Bean Name]![Remote Interface Name]), and very hard-code with class. So does there any way can use external file to manage/save/define name(@Stateless(name="XXX"))?
Does any one have idea or suggestion?
Thanks all.