db4o.com/about/productinformation/.
Creating a Real Data Source with db4o
[ 252 ]
As an additional bonus for us, db4o comes with an excellent interactive tutorial that
you will find inside the downloaded package. I wholeheartedly recommend that you
read this tutorial??”you will understand how to deal with this unbelievable database
in no time.
Here, you will find a demonstration of how db4o can be used to create a real data
source for our Celebrity Collector application.
Preparing the Database
The package you download from the previously mentioned website will be named
something like db40-6.3-java.zip, although the version number might be
different. In its lib subfolder, you will find a number of JAR files??”for different
versions of Java. We need the one that works with Java 5, it will be named like
db4o-6.3-java5.jar. Copy this file to the WEB-INF/lib subdirectory of the
Celebrity Collector project.
The last piece of "configuration" is to decide where you are going to store the
database file on your hard drive. You can name it whatever you wish and you will
be able to copy, distribute, or back it up like any other file. Let's say our file will be at
C:\tapestry5\data\celebrities.
Pages:
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309