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

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

XMLWordPrintable

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

      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);

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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: