| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Running The Examples Castor JDO Castor DSML External Examples ebXMLsoft Running The Examples In order to run the examples located in src/examples, there are number of steps that must first take place. these steps are outlined below: The script files example.sh and example.bat can be used to run the provided examples. The first argument is the example package name. For example, to build and run the JDO example: Castor JDOThe JDO sample will test persistence between a set of Java classes (Product, ProductGroup, ProductDetail) and a known SQL schema. You can use the create.sql file to generate the database schema for the purpose of this test. The mapping between the Java objects and SQL schema is described in the file mapping.xml. The JDBC connection to use is describes in the file database.xml. The provided file uses PostgreSQL as the database server and JDBC driver, you can modify this file for your database server and use any JDBC 1.0 or 2.0 driver. The database information and mapping are automatically read from the JDO example directory, there is no need to provide any parameters on the command line. The performance test uses the ODMG engine as well as direct JDBC access. You must provide the JDBC URI and class name to use for this test on the command line. Usage: Castor DSMLDo not run this sample against a production LDAP server unless you are sure it will not affect the information in your directory! The DSML sample will attempt to import the supplied directory information from the test.xml file using the import policy described in the import.xml. file. It will then run a search against the LDAP server using the search criteria in the search.xml file and dump it to the console. You must modify search.xml, import.xml and test.xml and adapt them to your LDAP directory structure. The default files assumes the root directory dc=intalio,dc=com and includes some sample LDAP entries. Usage: External ExamplesThis sections provides a place link external examples of using Castor. If you have an example that you feel would be useful please send us the URL. Also notify us if any links are broken. ebXMLsoftGoran Zugic and Duka Krunic of ebXMLsoft Inc. have some samples using Castor XML and Castor JDO. The examples use Castor 0.9.2 and offer good insight in using XML and JDO together. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||