1 Reply Latest reply on May 31, 2007 10:42 PM by jaikiran

    Resolving the EAR name ...

    lord_arkain

      Grettings,

      I'd like to resolve the name of the current EAR to use it within an JNDI-lookup in a servlet. The sevlet is part of an WAR which is part of the EAR.

      The default naming scheme for beans seem to require me to know it or is there a better way to do this lookup?

      Thank you,
      Matthias Berndt

        • 1. Re: Resolving the EAR name ...
          jaikiran

          I dont think there's a direct API to use. If you are concerned about hardcoding the ear name in your lookup code, you can have an env-entry in your web application and pass the ear name through this env-entry