11 Replies Latest reply on Dec 1, 2010 1:12 AM by jaikiran pai

    JNDI EJB lookup in jboss5.1.0 GA

    User User11 Newbie

      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.



      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 help is appreciated.