Configuring the connection pool with a management interface is much safe than the change XML file, and it is convenient and fast.
Login management interface
Http: // localhost: 8080 / admin
Password and user name are set when you installed, if you forget (or not), go to Tomcat / conf / tomcat-users.xml, add both admin and manager, one user, the user's role is Admin And Manager is OK, can be modified according to the original XML replication.
2. Set the steps
2.1 Click on the small circle on the left of the service menu item in the left frame, expand the list.
2.2 Click on the small circle left on the left of the Host (LocalHost) menu item in the left frame.
2.3 Click on the left frame You want to add the small circle on the left side of the menu item of the connection pool, expand the list.
2.4 Click on the Data Sources Cai in the left frame, the setting page appears on the right frame.
2.5 Select Create New Data Source from the Data Source Actions drop-down list in the upper right frame.
2.6 Fill in the example:
JDBC / MyDataSourceData Source URL: JDBC: Oracle: Thin: @localhost: 1521: Myoraclejdbc Driver Class: Oracle.jdbc.driver.OracleDriverUser Name: TestPassword: Test
2.7 Click on the right upper frame in the upper right angle save button
2.8 Click on the top frame of the COMMIT CHANGES button.
2.9 Example: Click to view
Dbwrapper.java
2.10
image