+

Search Tips   |   Advanced Search

Export SCA domain information

We can export information on Service Component Architecture (SCA) composites in an SCA domain to a file of the choice.

An SCA composite must be a composition unit in a business-level application.

We can view information on components in an SCA domain. The SCA domain is typically the cell on multiple-server installations and the server scope on single-server installations. We can view SCA domain information in the console or by exporting it to a file . Exporting SCA domain information enables you to preserve information on components.

This topic describes how to export domain information .

We might export domain information before updating SCA business-level applications or before migrating to a later version of the product.

  1. Start the wsadmin scripting tool.

  2. Optional: View online help for the exportCompositeToDomain command.

    Jython:

      print AdminTask.help('exportCompositeToDomain')

    Using Jacl:

      $AdminTask help exportCompositeToDomain

  3. Export information on SCA composites in a domain to a file of the choice.

    Use the exportCompositeToDomain command to export the information. The command has two parameters, -domainName and -fileName, both of type String. The -domainName parameter is optional. The -fileName parameter is required.

    Jython:

    (dist)

      AdminTask.exportCompositeToDomain('[-domainName SCA_domain_name -fileName C:/my_file]')

    (zos)

      AdminTask.exportCompositeToDomain('[-domainName SCA_domain_name -fileName /my_file]')

    Using Jacl:

    (dist)

      $AdminTask exportCompositeToDomain {-domainName SCA_domain_name -fileName C:/my_file}

    (zos)

      $AdminTask exportCompositeToDomain {-domainName SCA_domain_name -fileName /my_file}

    Variable Description
    $ is a Jacl operator for substituting a variable name with its value
    AdminTask is an object to run administrative commands with wsadmin.sh
    exportCompositeToDomain is an AdminTask command
    SCA_domain_name is the name of SCA domain whose information is exported
    /my_file is the name of the file to which domain information is written


Results

After the exportCompositeToDomain command runs, information on components in the SCA domain is written to the specified file. The product displays the following message:

We can view the same domain information in the console. Click Applications > Application Types > Business-level applications > application_name > deployed_asset_name > View domain.


Example

Suppose the HelloWorldAsync business-level application provided as a sample with the product is installed. Run the exportCompositeToDomain command to export the composites:

Jython:

(dist)

(zos)

Using Jacl:

(dist)

(zos)

Running the exportCompositeToDomain command writes domain information resembling the following to the specified file:

<?xml version="1.0" encoding="UTF-8"?>
<domain name="myDomain">
<component name = "AsynchTranslatorComponent"
      mapTarget = "WebSphere:cell=myCell02,node=myNode02,server=server1">
<service name = "AsynchTranslatorService">
<interface.java interface = "helloworld.AsynchTranslatorService"/>
</service>
<reference name = "AsynchTranslatorService" target = ""/>
<httpurlendpoints name = "endpoints" uri = ""/>
</component>
</domain>


What to do next

Examine the exported file to ensure that it contains the intended information.


Related concepts

  • SCA domain


    Related tasks

  • Start the wsadmin scripting client
  • Example: Create an SCA business-level application
  • Example: Create an SCA business-level application with the console
  • View SCA domain information
  • Manage deployed applications