Uploaded image for project: 'TomEE'
  1. TomEE
  2. TOMEE-3726

Queue is visible in JNDI Tree (java://id-resource)

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 8.0.6
    • Fix Version/s: None
    • Component/s: TomEE Core Server
    • Labels:
      None
    • Environment:
      Windows 10 Prof.

      Description

      Hi,

      In line 316 of org.apache.openejb.server.ejbd.JndiRequestHandler you use java.util.Queue instead javax.jms.Queue to compare (instaceof) the Object loaded from JNDITree.

      The bug results in the following consequence:

      If you have configured a Queue as resource, you can call this queue by a remote client (over RemoteInitialFactory->jndi-name: java://id-resource).

      In contrast a Topic you cannot called by this way (results in null as instance).

      The method "doLookup(final JNDIRequest req, final JNDIResponse res, final String prefix)" returns for a Queue JNDI_OK an for a Topic JNDI_RESOURCE as result.

      So you can get a queue remote from the ejbd connector (not the right way i think) and a topic not.

      Greetings
      Andreas Riesel

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              Riesel Andreas
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: