Before you begin
You can export your applications before you update installed applications or before you migrate to a different version of the WebSphere Application Server product.
Before starting this task, the wsadmin tool must be running. See the Starting the wsadmin scripting client article for more information.
Why and when to perform this task
Exporting applications enables you to back them up and preserve their binding information.Steps for this task (dependent on configuration)
Using Jacl:
$AdminApp export app1 C:/mystuff/exported.ear
Using Jython:
AdminApp.export('app1', 'C:/mystuff/exported.ear')
$ | is a Jacl operator for substituting a variable name with its value |
AdminApp | is an object allowing application objects management |
export | is an AdminApp command |
app1 | is the name of the application that will be exported |
/mystuff/exported.ear | is the name of the file where the exported application will be stored |
Using Jacl:
$AdminApp exportDDL app1 C:/mystuff
Using Jython:
AdminApp.exportDDL('app1', 'C:/mystuff')
$ | is a Jacl operator for substituting a variable name with its value |
AdminApp | is an object allowing application objects management |
exportDDL | is an AdminApp command |
app1 | is the name of the application whose DDL files will be exported |
/mystuff | is the name of the directory where the DDL files export from the application |
Related concepts
AdminApp object for scripted administration
Related tasks
Updating installed applications with the wsadmin tool
Related reference
Commands for the AdminApp object