aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes How to get jndi lookup names programmatically Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "How to get jndi lookup names programmatically " Watch "How to get jndi lookup names programmatically " New topic
Author

How to get jndi lookup names programmatically

Meir Yan
Ranch Hand

Joined: Apr 27, 2006
Posts: 597
Hello all
Im using jboss jndi how can I get the jndi hierarchy objects that the jndi repository contains
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

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 ]

JavaRanch FAQ HowToAskQuestionsOnJavaRanch
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to get jndi lookup names programmatically