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

Not possible to lookup exported JMS resources by full JNDI name with java:jboss/exported/... prefix

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Unresolved
    • Major
    • None
    • 10.1.0.Final
    • Remoting

    Description

      If exported queue/topic or connection factory is looked up from JNDI by remote client then client must use relative JNDI name.

      For example if queue is registrered in JNDI under name java:jboss/exported/jms/queue/InQueue then client must lookup jms/queue/InQueue

      In case client tries to lookup queue by full JNDI name java:jboss/exported/jms/queue/InQueue then lookup fails with exception:

      javax.naming.NameNotFoundException: jboss/exported/jms/queue/InQueue -- service jboss.naming.context.java.jboss.exported.jboss.exported.jms.queue.InQueue
      	at org.jboss.as.naming.ServiceBasedNamingStore.lookup(ServiceBasedNamingStore.java:106) ~[na:na]
      	at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:207) ~[na:na]
      	at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:184) ~[na:na]
      	at org.jboss.naming.remote.protocol.v1.Protocol$1.handleServerMessage(Protocol.java:127) ~[jboss-remote-naming-2.0.4.Final.jar:2.0.4.Final]
      	at org.jboss.naming.remote.protocol.v1.RemoteNamingServerV1$MessageReciever$1.run(RemoteNamingServerV1.java:73) ~[jboss-remote-naming-2.0.4.Final.jar:2.0.4.Final]
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) ~[na:1.8.0_51]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) ~[na:1.8.0_51]
      	at java.lang.Thread.run(Thread.java:745) ~[na:1.8.0_51]
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            mnovak1@redhat.com Miroslav Novak
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: