Uploaded image for project: 'OpenEJB'
  1. OpenEJB
  2. OPENEJB-1358

lookup doesn't find a previously bound object

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Invalid
    • 3.1.2, 4.7.0
    • None
    • None
    • None
    • java.naming.factory.initial = org.apache.openejb.client.LocalInitialContextFactory

    Description

      Steps to reproduce:

      context.bind("some/component/name", String.class);
      context.lookup("some/component/name"); // throws NameNotFoundException

      The problem raises from the fact that the lookup method adds the "local" prefix to the name. But the object is actually bound under "some/component/name", not under "local/some/component/name". The lookup will throw an exception because the name is not found.

      Attachments

        1. OpenEjbContainerBindTest.java
          1 kB
          Jarek Dabrowski

        Activity

          People

            romain.manni-bucau Romain Manni-Bucau
            florin.spatar Florin Spătar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: