whats is mean by jndi
Answers were Sorted based on User's Feedback
Answer / abhinandan
JNDI is used to create instances of object and passing a
reference of the object to the server.Through JNDI one can
access the particular object through an unique name
associated with the particular Object. Eg
Hashtable ht = new Hashtable();
ht.put("Context.InitialContext","---");
ht.put("URL.ProviderURL","t3://localhost:1099/");
Context cntx = new InitialContext(ht);
DataSource ds =(DataSource)cntx.lookup("TestDataSource");
Connection con = ds.getConnection();
| Is This Answer Correct ? | 9 Yes | 0 No |
Answer / mahendar
JNDI is an naming registry.Using JNDI you can get SQL
Connection,mail connection.
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / gokul d
jndi stands for java naming directory interface....it has
two methods ie naming.lookup(url) and naming.bind
(host,server) used in networking as well in EJB.
| Is This Answer Correct ? | 2 Yes | 0 No |
what are JSP tags? what is difference between include action and directory?
why we use main in java?
Is multiple try block is possible in single java Application......
What is the difference between RMI and Corba?
Why are my checkboxes not being set from on to off?
which is the better collection class if the requirement is only displaying the data
What is difference RMI registry and OSAgent?
What are skeletons and stubs and how they are generated?
Why use a datasource when you can directly specify a connection details?
How primary key is implemented in Oracle?
Name the eight primitive java types.
What is Introspection?