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 |
difference between applicationserver and webserver
can i call multipule form beans in Action class?
java is fully object oriented languages or not? why?
Thread life cycle?
how convert java file to jar files?
What is Stream and Types?
what is the diffrence between banking and insurance domain?
function of extends and implements keywords?
How can a dead thread be restarted?
What is the O/P of the below Code Snippet ? And how does it imply the concept of call-by-value/call-by-reference. (Note : Pls ignore syntx errors) public class One { sop ("Into One--"); } public class Two extends One{ sop ("Into Two--"); } public class Home { One a; Two t; public static void main(argv[]) { sop ("In Home--"); sop(One.a); sop(Two.a); sop(One.t); sop(Two.t); } }
how to get value in combo for updation?
What method is invoked to cause an object to begin executing as a separate thread?