Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to get jndi lookup names programmatically

 
Meir Yan
Ranch Hand
Posts: 599
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all
Im using jboss jndi how can I get the jndi hierarchy objects that the jndi repository contains
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic