You have to run the default task ('archives') of the build.xml provided
into the Speedo distribution.
By default at runtime, the first time that you ask to Speedo to manage a persistent class, it tries to initialize the data structure (SQL tables) associated to the class.
Nevertheless when you use Speedo in an application server, some databases do not support to create the data structure inside a XA transaction. Then you must create the data structure before the server launching. To do this, Speedo provides a class which initializes the the data structure of persistent classes, out of transaction. This class is named 'org.objectweb.speedo.tools.DataStructureCreation'. The speedo examples show usages of this class through the ant target 'createDataStruct' provided into their build.xml. In fact the main method of the class expects in argument, the names of classes to initialize (white space is the separator.
java org.objectweb.speedo.tools.DataStructureCreation com.foo.MyPersistentClass1 com.foo.MyPersistentClass2
The speedo project uses the version 1.5 of Jarkata Ant.
Target | Description |
compile | compile the project in the ./output/build directory |
dist | create the speedo distribution in the ./output/dist directory |
zip | create the zip file corresponding to the project and the distribution. The zip file are created into the ./output/zip directory |
test | run all speedo tests |
Set the property 'org.objectweb.speedo.query.prefetch' to off into the
speedo.properties configuration file.