ExoLab     OpenEJB     OpenJMS     OpenORB     Castor     Tyrex     Adaptx     
 

Main
  Home
  Download
  Mailing Lists
  CVS

Using
  Running The Examples

advanced
  Full JavaDoc
  Configuration, Libs, Building

misc
  License
  Contributors
  Status, Todo
  Changelog
  Library
  Contact

  



Running The Examples
Castor JDO
Castor DSML

Running The Examples

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:

  build.sh examples
  example.sh jdo
  example.sh xml
  example.sh dax

Castor JDO

The 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:

  example.sh jdo
         

Castor DSML

Do 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:

  test.sh dsml [jndi|mozilla] <host> <root-dn> <root-pwd>

  jndi|mozilla  Selects whether to use the JNDI or Mozilla Directory
	        SDK implementations
  host          The LDAP host name (port number is optional)
  rood-dn       The root DN used for authenticating when importing
  root-pwd      The root password used for authenticating when importing
For example:
  example.sh dsml mozilla ldap.intalio.com dc=intalio,dc=com secret
         

 
   
  
   
 


Copyright (C) 1998-2001 ExoLab Group. All rights reserved.
 
Java, EJB, JDBC, JNDI, JTA, Sun, Sun Microsystems are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and in other countries. XML, XML Schema, XSLT and related standards are trademarks or registered trademarks of MIT, INRIA, Keio or others, and a product of the World Wide Web Consortium. All other product names mentioned herein are trademarks of their respective owners.