Integrating Data Sources into the Portal

The extended version of your portal has two data sources. You will use a database to store various information and an online news feed to provide the news items the user selects.

Storing Information in the Database

As installed, Cocoon comes with an integrated HSQL database that you can use to store your users and their profiles. Cocoon also comes with the necessary components needed to integrate other databases via Java Database Connectivity (JDBC).

The first step is to configure the database tables you need. You do this by using the script that HSQL provides and that is read and executed when the server is started. Because the HSQL database is integrated into Cocoon, it is started automatically when ...

Get Cocoon: Building XML Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.