A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Elasticsearch in Action
this week in the
EJB and other Java EE Technologies
How to get jndi lookup names programmatically
Joined: Apr 27, 2006
Nov 29, 2007 01:19:00
jndi how can I get the jndi hierarchy objects that the jndi repository contains
Joined: Apr 14, 2004
Nov 29, 2007 02:34:00
You will have to walk through the JNDI tree from the root context. Have a look at the methods available to you from java.naming.Context.
Alternatively, since this is JBoss, you can call the MBean it supplies to provide its own JNDI view - the service is JNDIView I think.
[ November 29, 2007: Message edited by: Paul Sturrock ]
I agree. Here's the link:
subject: How to get jndi lookup names programmatically
mysql in embedded tomcat - JNDI?
JNDI in tomcat
JNDI for database
JNDI not creating for EJB Local interfaces example
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015