Answer Posted / 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 |
Post New Answer View All Answers
What is threadfactory?
what is a portable component?
What is the difference between system.out ,system.err and system.in?
How to pass parameters in RMI?
What event results from the clicking of a button?
What are the pros and cons of detached objects?
What is the relationship between local interfaces and container-managed relationships?
How to implement RMI in Java?
What is the argument type of a programs main() method?
Where can I ask questions and make suggestions about seam?
Define the remote object implementation?
What is the difference between static and non-static with examples?
What is aop(assepct oriented programing)?
what are the activation groupworks?
we use MainFrame and using os390 for operating system with DB2 data base in IRAN and interest programing with java and use webspere for world wide,please help me where i should start?