whats is mean by jndi

Answers were Sorted based on User's Feedback



whats is mean by jndi..

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

whats is mean by jndi..

Answer / mahendar

JNDI is an naming registry.Using JNDI you can get SQL
Connection,mail connection.

Is This Answer Correct ?    3 Yes 0 No

whats is mean by jndi..

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

whats is mean by jndi..

Answer / siva prasad

Java Naming Domain Interface

Is This Answer Correct ?    2 Yes 14 No

Post New Answer

More Advanced Java Interview Questions

cud u help me ... i am struggling with this question... to find all the subsets of a given set for ex.... a,,b,c shud give all the subsets.... i gt the program in c bt nt able to get it in java..... help needed ..

0 Answers  


How to implement dphibernate to activate lazy loading in Flex with java ?thanx in advance!

0 Answers  


How many requests can a server fetch at a time?

1 Answers  


What is the difference between Process and Threads?

19 Answers  


Java is fully object oriented languages or not?

0 Answers  






I wantr to know, How many number of users logged in to website? can any one answer

7 Answers   Cap Gemini,


What is a thread?

3 Answers  


Are there books about seam?

0 Answers  


How do u supress the parameters from the displaying in the url?

2 Answers  


which deployment descriptor element is used to configure the authentication method? a. auth-config b. login-config c. sec-config

1 Answers  


function of extends and implements keywords?

2 Answers  


What are callback interfaces?

0 Answers  


Categories