yegor256 yegor256 - 2 years ago 76
Java Question

Is it possible to get "everything" from javax.naming.InitialContext?

Is it possible to retrieve "everything" (all names) from

? I didn't find any examples or documentation about it.

Answer Source

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:

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download