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

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 6
    • Fix Version/s: 6
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b45
    • CPU:
      generic
    • OS:
      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

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

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: