You can take an existing application that uses Java™ Database Connectivity (JDBC) and a data source, and deploy the application to a server.
You can take an existing JDBC application and deploy it to the Liberty profile. To do this, you add the jdbc-4.0 Liberty feature to the server.xml file. You must also add code that tells the server the JDBC driver location and specifies properties that the JDBC driver uses to connect to the database.
This example uses the ImpactWeb sample application. This application includes a servlet called WorkingServlet. In this example, you extend the servlet with code that tests that the JDBC application is working as expected.