|
Generate a Mediator Client JAR File
This page last changed on Nov 29, 2008.
Oracle Data Service Integrator Documentation > Data Services Developer's Guide How To Generate a Mediator Client JAR FileTo use the Static Mediator API in a client application, you must generate a Mediator Client JAR file. This JAR file contains the Static Mediator API interfaces, plus all the necessary SDO-compiled schemas for a dataspace. One Java method is generated for each mapped data service operation. Method names match the mapped data service operation names. Client developers access data service operations by calling these methods. This section explains how to generate a Mediator Client JAR by these two methods: Tip: You can also generate a Mediator Client JAR using the Administration Console. See the Oracle Data Service Integrator Adminstration Guide for details. Using the IDETo generate a mediator client JAR file using the IDE:
Using the Command-Line ToolThis section explains how to generate a Mediator Client JAR file using the command-line tool. Before using the command-line tool, be sure you have the following:
To generate the client JAR, use this Ant command: ant -Dapproot=PROJECT_HOME -f BEA_HOME/odsi_10.3/bin/sdo_dspclientgen.xml where PROJECT_HOME is the full path to the Data Space project's root folder, and BEA_HOME is the root path for your Oracle WebLogic installation. For example (all on one line): ant -Dapproot=/home/myprojects/myapp -f /home/bea/odsi_10.3/bin/sdo_dspclientgen.xml This Ant script produces a file named PROJECTNAME-dsp-client.jar in PROJECT_HOME, where PROJECTNAME is the name of the directory PROJECT_HOME (as opposed to the full path to that directory). For example, the above script produces the Mediator Client JAR file: /home/myprojects/myapp/myapp-dsp-client.jar. Optional command-line features include:
|
| Document generated by Confluence on Jan 13, 2009 15:57 |