java - JNDI Directory services -


I'm new to JNDI , I know something about Java naming service, we For this, users can use it with compulsive and non-related items but I am trying to learn about the JDDI directory service, I tried on the Internet about the JNDI directory service To know, he explained that we should Can pick up, retrieve them, and use the attributes using the objects.

But I am not able to analyze the real concept of the JNDI directory service. If someone can explain to me, with some real time examples, what is the Directory service in JNDI , I am happy. I also tried, so please do not suggest me again the document.

Yes, I finally got a solution

Answer: JNDI Naming Service By doing so we can store the objects in the designated space in the central location with the username. JNDSI server

We can retrieve them in any Java application with the need to recreate them in different apps.

This is useful when you want to get a database connection in your application, to create a database connection in your application, you can easily get the connection object created from JNDI server by using the JNDI naming service can do.

This is exactly the same, instead of buying all the books, you can go to book library and book that you want to get from the library.

For JDI Directory service, you can store objects with us by using the directory service. You can also store some additional information along with the e-friendly name, object. For example, you want to get ready connection objects from JNDI server, but there are many connection objects in JDDI, one connection pointing to MYSQL database is another database ORACLE , this will know how the connection object is pointing to MYSQL Oracle .

For this purpose, whenever we are collecting the connection object in the database, the connection object can also store some additional features that are pointing to the database name in which the connection object Is pointing. The attribute of is ORACLE for databaseName = ORACLE database connection object and databaseName = MYSQL for MYSQL connection object .

This is the precise use of the JNDI directory service. You can learn more than << p>

. I should also thank Mr. Deep Singh Bedi, who helped me a lot in giving this answer to myself.


Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

How to access user directory in lazarus? -

java - Gradle dependencies: compile project by relative path -