Hi all
I am really not able to visualise a 'Context' physically.We set up a resource file, get an instance of Context from ContextFactory and use the context to get an instance of EJB or something. What is this 'Context'?
Rajneesh
-
what is a naming Context physically? (2 messages)
- Posted by: rajneesh jindia
- Posted on: March 10 2004 09:38 EST
Threaded Messages (2)
- what is a naming Context physically? by Paul Strack on March 11 2004 02:29 EST
- Context by Manish Mudgal on March 11 2004 08:12 EST
-
what is a naming Context physically?[ Go to top ]
- Posted by: Paul Strack
- Posted on: March 11 2004 02:29 EST
- in response to rajneesh jindia
Contexts are just a generic "lookup" mechanism. They don't necessarily have any physical component.
The JNDI (Java Naming and Directory Interface) API, from which contexts are derived, is used in Java to look up all kinds of things: server resources (including EJBs, datasources and messaging connections), LDAP structures, files in the file systems, CORBA names, etc.
The idea behind JNDI is to match resources (objects) with string ids (the JNDI name) which you can use to retrieve that resource. -
Context[ Go to top ]
- Posted by: Manish Mudgal
- Posted on: March 11 2004 08:12 EST
- in response to Paul Strack
Context is nothing just a your object's gateway to interact with placeholder where it loads.
Like in case of EJB it is provides mechanism to interact with container,in case of servlet ServletContext serves same purpose similarly AppletContext behaves.
Thanks
Manish