Description Syntax Examples sca_package

Oracle SOA Suite Custom WLST Commands 9-17

9.7 SOA Composite Application Packaging Commands

Use the packaging command, listed in Table 9–7 , to package SOA composite applications into a composite SAR file.

9.7.1 sca_package

Command Category: Application Packaging Commands Use with WLST: Offline

9.7.1.1 Description

Packages the SOA composite application files into a composite SAR file. This command performs the following operations: ■ Calls sca_compile to compile the composite artifacts in {compositeDir}. ■ Calls javac to compile any source code under {compositeDir}src. ■ Replaces the revision in {compositeDir}composite.xml. ■ Packages the artifacts to create sca_{compositeName}_ rev{revision}.jar in {compositeDir}deploy.

9.7.1.2 Syntax

sca_packagecompositeDir, compositeName, revision, [appHome], [oracleHome]

9.7.1.3 Examples

The following example packages the OrderBookingComposite application. The appHome property is set because this application uses shared data. wls:mydomainServerConfig sca_packagetmpapp_dataOrderBookingComposite, OrderBookingComposite, 1.0, appHome=tmpapp_data Table 9–7 SOA Composite Application Packaging Command for WLST Configuration Use this command... To... Use with WLST... sca_package Package the SOA composite application files into a composite SAR file. Offline Note: The sca_package command requires oracle.home to find the ant-sca-package.xml script. This must be set once. You can use the scac_setProp command or oracleHome property to set this property. Argument Definition compositeDir Absolute path of a directory that contains composite artifacts. compositeName Name of the composite. revision Revision ID of the composite. appHome Optional. Absolute path of the application home directory. This property is required if you have shared data. oracleHome Optional. The oracle.home property. 9-18 Oracle Fusion Middleware WebLogic Scripting Tool Command Reference The following example packages the HelloSOAComposite application. wls:mydomainServerConfig sca_package tmpHelloSOAApplicationHelloSOAComposite, HelloSOAComposite, 1.0 The following example packages the HelloSOAComposite application. The oracleHome property is set to find the ant-sca-compile.xml script. wls:mydomainServerConfig sca_package tmpHelloSOAApplicationHelloSOAComposite, HelloSOAComposite, 1.0, oracleHome=scratchmyusernamebeahomeAS11gR1SOA

9.8 SOA Composite Application Test Commands