-
1. Re: List all objects using JNDI
peterj Apr 13, 2012 10:54 AM (in response to somostetoikilato)Which version of JBoss AS?
See if this helps: https://community.jboss.org/wiki/DisplayTheJDNITreeWithTheJMXConsole
-
2. Re: List all objects using JNDI
somostetoikilato Apr 13, 2012 1:26 PM (in response to peterj)Hi Peter,
I forgotten to mention that what I would like to do is to query programmatically all the objects present in JNDI. Just providing a host name and a port, I would like to get informations about all EARs, queues, topics, etc. At the moment I use JBoss 4.2 and 5. The JMX console works fine, I know it.
SK
-
3. Re: List all objects using JNDI
peterj Apr 13, 2012 1:55 PM (in response to somostetoikilato)1 of 1 people found this helpfulThe JNDI documentation and javadoc should show you how to do that. Once you have the InitialContext, use the list() method to get its contents. If any of the contents are contexts, cast them to Context and use the list() method. Very much like browsing a file and directory tree.
-
4. Re: List all objects using JNDI
somostetoikilato Apr 13, 2012 2:37 PM (in response to peterj)Thank you Peter. It works!
Have a nice week-end.
SK