• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Regarding NamingException

 
Ranch Hand
Posts: 214
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

Could anyone explain me when NamingException is thrown?


I searched on the internet. I got an explaination as below:

This is the superclass of all exceptions thrown by operations in the Context and DirContext interfaces. The nature of the failure is described by the name of the subclass.




But not much cleared. i have no clue abouot what Context and DirContext interfaces do. Could anyone please explaned me with snippet which throws above exception.

Thanks in Advance.

 
Bartender
Posts: 3648
16
Android Mac OS X Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Have you looked under javax.naming.Context and javax.naming.directory.DirContext? In brief, the DirContext is for directories or folder. Context is for the object level. These interfaces and the NamingException is part of the Java Naming and Directory Interface (JNDI). Some reading on this topic will get you a bit more answers. The Java Tutorial for JNDI is here
 
reply
    Bookmark Topic Watch Topic
  • New Topic