Is it possible to retrieve "everything" (all names) from javax.naming.InitialContext
? I didn't find any examples or documentation about it.
Looking at the JavaDoc I can see that .list(String name) will return the list of names in the named context and that .getNameInNamespace() will return the name of the InitialContext. So perhaps you can do:
ctx.list(ctx.getNameInNamespace());
It is as simple as:
ctx.list("")
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With