This rule detects the use of the org.apache.tomcat.dbcp.dbcp.BasicDataSource class in Java files. This class implements the industry standard data source interface javax.sql.DataSource . The Apache Tomcat data source provides proprietary methods that your application may be using.
If you are not using proprietary methods, you can change your code to use javax.sql.DataSource rather than casting to the Tomcat version.
If you are using the proprietary methods and want to continue to use them in the application, you can migrate the resource to use the Apache Commons DataSource. To use Apache Commons, download the common-dbcp jar file and configure your resource to use this data source. In your Java code, change references of org.apache.tomcat.dbcp.dbcp.BasicDataSource to org.apache.commons.dbcp.BasicDataSource .
Alternatively, you can reconfigure your resource to use WebSphere connection pools to increase performance and alleviate threading and scalability issues. Using this solution, data source statistics and information are available to your application using the Connection Factory MBean.
For additional information see: