Most often in conferences there are numerous exhibitors who hand out CD-ROMs containing a small program for company or product marketing, at times even including PDF documents. Tom Seidel suggests using the Eclipse RCP to build such an application. He goes on to explain how to embed a Derby database and configure your product in a way that will make it possible to execute it from a CD-ROM. Here's how:
First download the eclipse plugg-in that contains the Derby database, and set a dependency in your plugin.xml to integrate the database. To set up a connection pool, copy the source-code from the Derby ui-plugin to initialise your connection or integrate the commons-pool and commons-dbcp. The next step is to set up Derby's working files to a directory on hard disc. Seidel recommends creating a folder in the user's home directory for writing Logs and Error-Stream. You have to set the following System properties:
The third step is setting Eclipse's workspace. On default eclipse creates the workspace directory in the eclipse-root folder, which, Seidel says, is not possible if you want to deliver your application via CD-Rom. Therefore, you have to set the following parameters in your RCP's config.ini:
"The integration of Derby was very easy and the handling does not differ from other systems. The execution of statements on a CD-Rom located database for simple search-queries and the start of the Eclipse-Framework are quite fast enough and you still have the possibility to save dialog-settings and preferences. It is a cool alternative to built marketing-orientated applications and shows the wide field of application of the Eclipse Rich Client Platform," he concludes.
Most often in conferences there are numerous exhibitors who hand out CD-ROMs containing a small program for company or product marketing, at times even including PDF documents. Tom Seidel suggests using the Eclipse RCP to build such an application. He goes on to explain how to embed a Derby database and configure your product in a way that will make it possible to execute it from a CD-ROM. Here's how:
First download the eclipse plugg-in that contains the Derby database, and set a dependency in your plugin.xml to integrate the database. To set up a connection pool, copy the source-code from the Derby ui-plugin to initialise your connection or integrate the commons-pool and commons-dbcp. The next step is to set up Derby's working files to a directory on hard disc. Seidel recommends creating a folder in the user's home directory for writing Logs and Error-Stream. You have to set the following System properties:
The third step is setting Eclipse's workspace. On default eclipse creates the workspace directory in the eclipse-root folder, which, Seidel says, is not possible if you want to deliver your application via CD-Rom. Therefore, you have to set the following parameters in your RCP's config.ini:
"The integration of Derby was very easy and the handling does not differ from other systems. The execution of statements on a CD-Rom located database for simple search-queries and the start of the Eclipse-Framework are quite fast enough and you still have the possibility to save dialog-settings and preferences. It is a cool alternative to built marketing-orientated applications and shows the wide field of application of the Eclipse Rich Client Platform," he concludes.