Part 3 of the PHP and Java development series is ready for reading. This part of the series examines the methods for integrating your Java application with a database, in this case DB2 9, so that we can store the responses from our sample survey application into the database. For this part: This article integrates the Java business application created in part 2 with a database, DB2 9. Data submitted to the Java business application, and we can use the data that is stored to provide statistical information about the responses.The series is split into six parts:
- Part 1 looks at the application and sets up an environment ready for building Java applications and serving Java-based Web applications using Tomcat.
- Part 2 covers the main application code and the development of a simple Java Servlet to provide a Web interface to the information.
- Part 3 connects the core application to a DB2 database for the storage of the survey questions and responses.
- Part 4 converts the original application into one that can be accessed as a Web service, and it provides the base for the PHP interface.
- Part 5 builds the PHP interface to the Java application by using the PHP Java Bridge.
- Part 6 redevelops the application to make use of the PHP Java Bridge in place of the Web service interface.