JBoss Community

Can I use external file to manage JNDI name?

created by Jyun-Wei Chen in EJB3 - View the full discussion

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.

Reply to this message by going to Community

Start a new discussion in EJB3 at Community