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