This sample shows how to use the Kodo XML Store Manager AbstractStoreManager implementation.
For more information on implementing your own custom store manager, please see the XML Store Manager Javadoc (package kodo.xmlstore), and the source code in src/kodo/xmlstore under your Kodo installation.
![]() | Note |
---|---|
The AbstractStoreManager requires a Kodo JDO Enterprise Edition license in order to function. See Chapter 13, Enterprise Edition for details about the Enterprise Edition. |
In order to see an example of the XML Store Manager:
Ensure that the Kodo distribution root directory is in your CLASSPATH. This is done automatically if you set up your environment as described in the README.
Ensure that the sample xmlstore.properties is in a directory in your CLASSPATH or in the root level of a jar in your CLASSPATH. Enter your Kodo license key into the sample xmlstore.properties as the value of the kodo.LicenseKey property.
Ensure that your CLASSPATH has all of the jars distributed with Kodo. This is done automatically if you set up your environment as described in the README.
javac *.java
jdoc package.jdo
Note that there is no need to run mappingtool for custom store managers.
java samples.xmlstore.SeedDatabase
Note the XML data in the selected data directory as specified by your javax.jdo.option.ConnectionURL.