-
Bug
-
Resolution: Done
-
Blocker
-
7.1.0.DR11, 7.1.0.DR12, 7.1.0.DR13, 7.1.0.DR14
-
Regression
-
-
-
-
-
-
-
This is regression against EAP 7.0.z.
Customer impact: This might have been used by customers with EAP 7.0. Customers have to change their application code and remove java:/ prefix from JNDI names to be able to do JNDI lookup in EAP 7.1.
JNDI lookup for destinations prefixed with java:/ fails with following error:
javax.naming.NameNotFoundException: "java:/jms" -- service jboss.naming.context.java.jboss.exported.java:/jms at org.jboss.as.naming.ServiceBasedNamingStore.lookup(ServiceBasedNamingStore.java:106) at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:207) at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:193) at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:189) at org.wildfly.naming.client.remote.RemoteServerTransport.handleLookup(RemoteServerTransport.java:171) at org.wildfly.naming.client.remote.RemoteServerTransport$1.handleMessage(RemoteServerTransport.java:92) at org.jboss.remoting3.remote.RemoteConnectionChannel.lambda$handleMessageData$3(RemoteConnectionChannel.java:434) at org.jboss.remoting3.EndpointImpl$TrackingExecutor.lambda$execute$0(EndpointImpl.java:817) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745)
In more detail
Let's have jms queue defined as follows:
<jms-queue name="testQueue" entries="jms/queue/testQueue java:jboss/exported/jms/queue/testQueue"/>
Initial context properties
java.naming.factory.initial=org.jboss.naming.remote.client.InitialContextFactory
java.naming.provider.url=http-remoting://127.0.0.1:8080
Following JNDI lookup fails with error mentioned above
ctx.lookup("java:/jms/queue/testQueue");
- is incorporated by
-
JBEAP-10728 Upgrade naming client to 1.0.0.Beta15
- Verified
-
WFNC-22 Also support "java" scheme for plain remote contexts
- Resolved