JBoss Community

JNDI EJB lookup in jboss5

created by Varsha Hardikar in JNDI and Naming - View the full discussion

I am running into issues where I have to change the way we do ejb lookups by specifying the ear file name prefix along with the ejb name.

 

Is there a way in jboss 5 to bind the ejb differently so that the ear file name prefix is ignored? I want to make the code as much flexible as possible so that it is not dependent on the ear file name to lookup ejbs.

 

Eg:

Bean b = (Bean)ctx.lookup("myear/MyBean/local");

 

myear = ear file name

MyBean= ejb

 

I am looking for a way to not hardcode the “myear”.

 

Any ideas/suggestions are appreciated.

 

Thanks

Reply to this message by going to Community

Start a new discussion in JNDI and Naming at Community