Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-779

binding subcontexts with <lookup> does not work

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • None
    • Naming
    • None

    Description

      If you attempt to bind a subcontext via <lookup> in the naming subsystem it will fail when anything is looked up under it.

      To reproduce, add <lookup name="java:jboss/ds" lookup="java:jboss/datasources"/>, and then look up something under java:jboss/ds/

      In ServiceBasedNamingStore.lookup() it needs to return a ResolveResult, but the (!(obj instanceof NamingContext)) check skips it.

      As a work-around, you can write an object factory which looks up the sub-context and then returns a wrapper around it, a Context implementation which simply delegates all methods to the original context. Since that wrapper is not a NamingContext instance, it works.

      Attachments

        Activity

          People

            emartins@redhat.com Eduardo Martins
            rhn-support-jlivings James Livingston (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: