3 Replies Latest reply on Mar 30, 2007 11:31 AM by William DeCoste

    Programmatically looking up EAR-name of the current applicat

    Johan Persson Newbie


      We're migrating our application to the final EJB3-specs and we've stumbled into a problem with the new jndi-naming-schema. The new schema says that the beans are prefixed with the application name. Which is great, since we've been wanting to use beans from other apps a couple of times.

      My question is how does one lookup the application name programmatically. We're using a common class for doing bean lookup shared among all of our applications and we cannot hardcode the name as I've seen in all of the examples.