Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-5088444

Request for an API to statically lookup an Object from the InitialContext class

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 6
    • 6
    • core-libs
    • b45
    • generic
    • generic

    Description

      Here is a feedback I received from the EJB engineering team:

      -------------------------------------------------------------

      The following pattern is heavily used in all J2EE applications

      Context ic = new InitialContext();
      obj = ic.lookup(name);

      It would be nice to have shorthand static lookup method something like below:
          obj = InitialContext.getObject(name);

      ------------------------------------------------------------------------------

      Attachments

        Activity

          People

            jhangalsunw Jayalaxmi Hangal (Inactive)
            jhangalsunw Jayalaxmi Hangal (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: