Uploaded image for project: 'Immutant'
  1. Immutant
  2. IMMUTANT-96

message queue names should not contain '/' character

    Details

    • Type: Quality Risk
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 0.2.0
    • Fix Version/s: 0.4.0
    • Labels:

      Description

      This issue is related to email thread "How to create remote client to message queue?" on the email listserv.

      It looks like it is not possible to lookup immutant queues from remote jms clients using standard JNDI lookup because the queue names have '/' in them.

      // This does not work, you get a NameNotFoundException.
      queue = (Queue)ctx.lookup(queueName);

      The workaround is to do
      queue = qsession.createQueue("/queue/remote");

      However, according to the J2EE docs for QueueSession:

      "This facility is provided for the rare cases where clients need to dynamically manipulate queue identity. It allows the creation of a queue identity with a provider-specific name. Clients that depend on this ability are not portable."

      Perhaps this is fine since it works on JBoss AS7. But requiring a non-portable workaround to connect to queues/topics seems less than ideal. If it is early enough to investigate if queue names that don't use '/' can be looked up using the context, I think that would be ideal, but would obviously be a change to the queue naming convention for Immutant.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                tcrawley Toby Crawley
                Reporter:
                mgiannini Matthew Giannini
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: