Is it possible to get from javax naming. Initialcontext get “everything”?
•
Java
See English answers > code to list all the entries in JNDI on remote machine
Solution
Check Javadoc and I can see List (string name) returns a list of names in the naming context, and Getnameinnamespace() will return the name of initialcontext So maybe you can do this:
ctx.list(ctx.getNameInNamespace());
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码