Details
-
Bug
-
Resolution: Done
-
Critical
-
None
-
None
Description
As per documentation (https://github.com/wildfly/wildfly-naming-client#usage)
the standard discovery can be bypassed with
InitialContext ctx = new WildFlyInitialContext();
Blah blah = (Blah) ctx.lookup("foo:blah");
But this aproach will fail with the following Exception:
Exception in thread "main" javax.naming.NoInitialContextException
at org.wildfly.naming.client.WildFlyInitialContext.getDefaultInitCtx(WildFlyInitialContext.java:65)
at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:350)
at javax.naming.InitialContext.lookup(InitialContext.java:417)
at org.jboss.wfink.eap71.playground.client.SimpleWildFlyInitialContextClient.main(SimpleWildFlyInitialContextClient.java:41)