This page last changed on Feb 26, 2008.
eDocs Home > BEA AquaLogic Data Services Platform Documentation > Data Services Developer's Guide > Contents 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 ALDSP 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/aldsp_3.0/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 WebLogic installation. For example (all on one line): ant -Dapproot=/home/myprojects/myapp -f /home/bea/aldsp_3.0/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 Apr 28, 2008 15:57 |