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

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

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: 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
        kevan Kevan Miller added a comment -

        Applied patch. Thanks Jarek!

        Show
        kevan Kevan Miller added a comment - Applied patch. Thanks Jarek!
        Hide
        gawor@mcs.anl.gov 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
        gawor@mcs.anl.gov 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.

          People

          • Assignee:
            gawor@mcs.anl.gov Jarek Gawor
            Reporter:
            gawor@mcs.anl.gov Jarek Gawor
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development