Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

What exactly is a 'context' regarding JNDI?  RSS feed

 
Joanne Fire
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI.
Besides it being used for lookups, how would you define simply a 'context'.. like what is it exactly, or what does it represent?
Joanne
 
Thomas Paul
mister krabs
Ranch Hand
Posts: 13974
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Context is a java interface (javax.naming.Context).
A context is basically a pointer into a naming service. Before you can access a naming service, you need a reference into that naming service and that is basically what the Context object provides.
 
Joanne Fire
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you, Thomas Paul, I guess that clear it!
Joanne
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!