FaceBook Share. The database connection is made by the jdbc-odbc method, which is the method of creating a connection once. The connection will call three states. The state provides the operation of the database. Jndi is a way to name the tree, and the required classes are listed into directories The style, which one needs to be called directly according to the naming, is a relatively quick idea and behavior.
When you want to operate the database, use jdbc to operate the naming service. With the increase of the actual terminal, the original configuration of the connection pool parameters may need to be adjusted ; Solution Programmers do not need to care about database-level things, just need to know how to refer to JNDI. The specific operations are as follows taking JBoss as an example : 1. Write My Article. What is the full form of jndi? What is the use of JDBC?
Does jdbc come along with j2ee? Is it possible while developing any software by using java can you manage database? List four JDBC drivers?
How do you write jdbc program in eclipse? Driver name for Microsoft sql server jdbc driver? What is JDBC package in java? How do you use database in java? How many types of JDBC driver? I installed Oracle 8. JDBC drivers and driver maneger? What is the difference between spirogyra and mushroom? What is jdbc-odbc bridge? What is the Exact difference between core java advanced java? Are you have project java have jsp plus jdbc plus swing? Study Guides. Modify the content of the mysql-ds.
Quote the data source in the program:. After the system is deployed, if the relevant parameters of the database change, you only need to reconfigure mysql-ds. As long as the name of the data source remains unchanged, the program source code does not need to be modified. This shows that JNDI avoids the tight coupling between the program and the database, making the application easier to configure and easy to deploy.
Toggle navigation Birost. Jdbc is a protocol or method determined by database intermediate agents in order to connect to the database by java. The method of database connection through jdbc-odbc is a method of creating one connection at a time. Then the connection will call 3 states. These problems are handed over to the J2EE container for configuration and management. Programmers only need to reference these configurations and management.
Naming service: is to associate a name with an object in the computer system, allowing applications to access the object through the name. In short, the naming service is to name the objects in the computer system. Directory service: The directory service is an extension of the naming service. The directory service not only needs to save the association between the name and the object, but also save the various attributes of the object. This allows developers to manipulate the attributes of the object, including adding, deleting, modifying and checking the attributes of the object.
In the directory service, you can search for objects based on attributes. Summary: JNDI can flexibly and quickly obtain database configuration information and connect by configuring parameters in the configuration file of the Tomcat server and the web.
0コメント