Skip Headers

# Creating project.xml Programatically

Previous

Next

Optionally, you can use the `DeploymentXMLGenerator` API to programatically generate the `project.xml` file in either of the following ways:

- From an application, instantiate the `DeploymentXMLGenerator` and your java source. Call the following method:

  `generate (``<MW_Project.mwp>``,` `<output file.xml>``)`

- From the command line, use:

  `java -classpath toplink.jar;toplinkmw.jar;xmlparserv2.jar;ejb.jar; oracle.toplink.workbench.external.api.DeploymentXMLGenerator` `<MW_Project.mwp> <output file.xml>`

Before you use either method, ensure your the classpath includes the `<ORACLE_HOME>``\toplink\config` directory.

Note:

If you are using EJB 3.0, you can use annotations to specify most of what you formerly specified in the `project.xml` file. To override annotations or specify options not supported by annotations, you can still provide a `project.xml` file in your EJB 3.0 application. For more information on what annotations are currently supported, see Oracle Containers for J2EE Enterprise JavaBeans Developer's Guide