OpenEJB     OpenJMS     OpenORB     Castor     Tyrex     
 

Main
    Welcome!
    Download
    Mailing Lists
    The Team
Users
    Quickstart
    Hello World!
    CMP Example
    CMP Guide
    Deploy
    Startup
    Validation
    Configuration
    Support
    Request Feature
    FAQ
Servers
    Local Server
    Remote Server
    Tomcat
Integrators
    Why OpenEJB
    Overview
    Design
    Specification
    Presentation
Developers
    Custom Services
    Release Plan
    Source Code
    SourceForge


SourceForge Logo
  



OpenEJB Validation Tool


NAME

openejb validate - OpenEJB Validation Tool

SYNOPSIS

openejb validate [options] jarfiles

NOTE

The OpenEJB Validation tool must be executed from the OPENEJB_HOME directory. This is the directory where OpenEJB was installed or unpacked. For for the remainder of this document we will assume you unpacked OpenEJB into the directory C:\openejb.

In Windows, the validation tool can be executed as follows:

C:\openejb> openejb validate -help

 NOTE
There is a bug in the openejb.bat script of OpenEJB 0.9.0 that doesn't allow you to execute the validate command as above. For that release, Windows users can execute the following command:
C:\openejb> bin\validate.bat -help

In UNIX, Linux, or Mac OS X, the deploy tool can be executed as follows:

[user@host openejb]# ./openejb.sh validate -help

Depending on your OpenEJB version, you may need to change execution bits to make the scripts executable. You can do this with the following command.

[user@host openejb]# chmod 755 openejb.sh bin/*.sh

From here on out, it will be assumed that you know how to execute the right openejb script for your operating system and commands will appear in shorthand as show below.

openejb validate -help

DESCRIPTION

The validation tool currently checks for the following things:

Does the Jar have all the ejb-class class files
Does the Jar have all the home class files
Does the Jar have all the remote class files
Is the ejb-class a sub-interface of SessionBean or EntityBean
Is the home a sub-interface of EJBHome
Is the remote a sub-interface of EJBObject
Are all the methods in the remote interface implemented in the ejb-class
Are there create methods in the home interface
Are the create methods in the home interface implemented in the ejb-class
Are the required post create methods in the ejb-class of EntityBeans
Are there any create methods in the ejb-class, but not in the home interface

More checks will be added in the future.

OPTIONS

 -v Sets the output level to 1. This will output just the minumum details on each failure.
 -vv Default. Sets the output level to 2. Outputs one line summaries of each failure. This is the default output level.
 -vvv Sets the output level to 3. Outputs verbose details on each failure, usually with details on how to correct the failures.
 -xml Outputs information in well-formed XML.
 -nowarn Suppresses warnings.
 -version Print the version.
 -help Print this help message.
 -examples Show examples of how to use the options.

 
     
   
   
 


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.