Introduction to JNDI, JTA and JMS
What is JNDI
Principle: multiple database connections are established in the datasource in advance and saved in the database connection pool. When the program accesses the database, it can only take the database connection in the idle state from the connection pool. After the access is completed, the resources are destroyed, and the database connection returns to the connection pool. This will save a lot of time and resources compared with each direct access to the database.
2. The middle tier JNDI service provider returns a datasource object to the current Java application. This datasource object represents the existing buffered data source on the middle tier service
7. When the middle tier server calls the getconnection () method of the pooledconnection object, the JDBC database driver will create a connection object and return it to the middle tier server
URL indicates the database URL address