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