OpenEJB
  1. OpenEJB
  2. OPENEJB-719

URL resource-ref are not handled correctly when embedded in Geronimo

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.7.0
    • Fix Version/s: 3.0-beta-2
    • Component/s: integration
    • Labels:
      None

      Description

      JndiEncBuilder creates a "URLReference(referenceInfo.resourceID)" reference using resourceID. When embedded in Geronimo the resourceID is a jndi location to lookup and not the actual value of the reference.

        Activity

        Hide
        Jarek Gawor added a comment -

        A patch for this issue.

        For standalone case, I'm not sure why URLReference is created with the referenceInfo.resourceID since resourceID maps to the .mappedName() of the annotation and not the actual value. If that's incorrect the entire if ("java.net.URL".equals(referenceInfo.referenceType)) block can be removed.

        Show
        Jarek Gawor added a comment - A patch for this issue. For standalone case, I'm not sure why URLReference is created with the referenceInfo.resourceID since resourceID maps to the .mappedName() of the annotation and not the actual value. If that's incorrect the entire if ("java.net.URL".equals(referenceInfo.referenceType)) block can be removed.
        Hide
        Kevan Miller added a comment -

        Applied patch. Thanks Jarek!

        Show
        Kevan Miller added a comment - Applied patch. Thanks Jarek!

          People

          • Assignee:
            Jarek Gawor
            Reporter:
            Jarek Gawor
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development