You can export information on Service Component Architecture (SCA) composites in an SCA domain to a file of your choice.
An SCA composite must be a composition unit in a business-level application.
This topic describes how to export domain information using scripting.
You might export domain information before updating SCA business-level applications or before migrating to a later version of the product.
After the exportCompositeToDomain command runs, information on components in the SCA domain is written to the specified file. The product displays the following message:
SCA_domain_name exported to /my_file.
You can view the same domain information in the administrative console. Click
.Suppose the HelloWorldAsync business-level application provided as a sample with the Feature Pack for SCA is installed. Run the exportCompositeToDomain command to export the composites:
Using Jython:
AdminTask.exportCompositeToDomain('[ -fileName C:/my_file ]')
AdminTask.exportCompositeToDomain('[ -fileName /my_file ]')
Using Jacl:
$AdminTask exportCompositeToDomain { -fileName C:/my_file }
$AdminTask exportCompositeToDomain { -fileName /my_file }
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>
Examine the exported file to ensure that it contains the intended information.
In this information ...Related concepts
| IBM Redbooks, demos, education, and more(Index) |