Description Syntax Example importMAR

Metadata Services MDS Custom WLST Commands 8-21 In the following example, if the adf-config.xml file in the archive already has the application and shared metadata repositories defined, all arguments are optional. You can set only the arguments you want to change. wls:offline archive = getMDSArchiveConfigfromLocation=tmptestArchive.ear wls:offline archive.setAppMetadataRepositorypartition=MDS-partition2 wls:offline archive.setAppSharedMetadataRepositorynamespace=a, repository=SharedRepos2 wls:offline archive.savetoLocation=tmptargetArchive.ear

8.5.2 importMAR

Command Category: Application Management Deployment Use with WLST: Online

8.5.2.1 Description

Imports the metadata from the MAR that is packaged with the applications EAR file. If the MAR had already been imported into the partition, the command deletes the previous version and imports the new version.

8.5.2.2 Syntax

importMARapplication, server [, force] [, applicationVersion]

8.5.2.3 Example

The following example imports metadata from the MAR to the application mdsapp: wls:weblogicserverConfig importMARmdsapp,server1 Executing operation: importMAR. importMAR operation completed. Summary of importMAR operation is: app1jobs.xml app1mo.xml 2 documents successfully transferred. Argument Definition application The name of the application for which the metadata is to be imported. server The target server on which this application is deployed. force Optional. A Boolean value true or false that specifies whether only changed documents and MARs are imported. For a database-based repository, if you set this argument to false, only new or changed documents from changed MARs are imported. The command creates a label for each MAR for which documents are imported. The label has the following format: postDeploy_application_name_MAR_name_MAR_checksum For a file-based repository, if you set this argument to false, only changed MARs are imported. The command does not compare individual documents The command creates a file in the repository for each imported MAR. The default is true. applicationVersion Optional. The application version, if multiple versions of the same application are deployed. 8-22 Oracle Fusion Middleware WebLogic Scripting Tool Command Reference 9 Oracle SOA Suite Custom WLST Commands 9-1 9 Oracle SOA Suite Custom WLST Commands This chapter describes WSLT commands for Oracle SOA Suite. These commands enable you to use WLST to configure SOA composite applications. This chapter includes the following sections: ■ Section 9.1, Overview of WSLT Command Categories ■ Section 9.2, Deployment Commands ■ Section 9.3, SOA Composite Application Management Commands ■ Section 9.4, Configuration Plan Management Commands ■ Section 9.5, Task Validation Commands ■ Section 9.6, SOA Composite Application Compilation Commands ■ Section 9.7, SOA Composite Application Packaging Commands ■ Section 9.8, SOA Composite Application Test Commands ■ Section 9.9, SOA Composite Application HTTP Client-Based Export and Import Commands ■ Section 9.10, SOA Composite Application MBean-Based Export and Import Commands ■ Section 9.11, SOA Composite Application Partition Management Commands For additional details about deployment, configuration plans, and test suites, see Oracle Fusion Middleware Developers Guide for Oracle SOA Suite.

9.1 Overview of WSLT Command Categories

WLST commands are divided into the categories shown in Table 9–1 . Note: To use these commands, you must invoke WLST from the Oracle home in which the component has been installed. See Using Custom WLST Commands in the Oracle Fusion Middleware Administrators Guide. Table 9–1 Oracle SOA Suite Command Categories Command category Description Deployment Commands Deploy and undeploy SOA composite applications.