Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within EJB and other Jakarta /Java EE Technologies
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Tim Cooke
paul wheaton
Paul Clapham
Ron McLeod
Sheriffs:
Jeanne Boyarsky
Liutauras Vilda
Saloon Keepers:
Tim Holloway
Carey Brown
Roland Mueller
Piet Souris
Bartenders:
Forum:
EJB and other Jakarta /Java EE Technologies
Query JNDI
andrew pierce
Ranch Hand
Posts: 33
posted 18 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
How do you go about querying JNDI? This seems quite esoteric. For example, I would like to enumerate a list of all JMS objects defined in my JNDI directory. Is there something on the InitialContext that I can use?
Thanks.
Jaikiran Pai
Sheriff
Posts: 10445
227
I like...
posted 18 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
How about this:
Context ctx = new InitialContext(); NamingEnumeration ne = ctx.listBindings("java:/"); while (ne.hasMoreElements()) { ...... }
[
My Blog
] [
JavaRanch Journal
]
Don't get me started about those stupid
light bulbs
.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
JMS messaging Topic
regarding JNDI
fundamental question about j2ee/jndi
LDAP connection through JNDI WAS 5
DOS shortcuts: sick of typing c:\2ee\blah\blah
More...