Typically data for an application is stored inside the Domino database (nsf). However, it is possible to use XPages as a front end to a relational database (DB2 in this case). Using Java (JDBC) and ServerSide Javascript, this application shows you how to do it and run it locally.