Exporting applications using scripting
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 Start the wsadmin scripting client article for more information.
Overview
Exporting applications enables you to back them up and preserve their binding information.
Procedure
- Export an enterprise application to a location of your choice, for example:
Use Jacl:
$AdminApp export app1 C:/mystuff/exported.earUse Jython:
AdminApp.export('app1', 'C:/mystuff/exported.ear')where:
$ Jacl operator for substituting a variable name with its value AdminApp object allowing application objects management export AdminApp command app1 name of the application that will be exported /mystuff/exported.ear name of the file where the exported application will be stored
Export Data Definition Language (DDL) files in the enterprise bean module of an application to a destination directory...
Use Jacl:
$AdminApp exportDDL app1 C:/mystuffUse Jython:
AdminApp.exportDDL('app1', 'C:/mystuff')where:
$ Jacl operator for substituting a variable name with its value AdminApp object allowing application objects management exportDDL AdminApp command app1 name of the application whose DDL files will be exported /mystuff name of the directory where the DDL files export from the application
Updating installed applications with the wsadmin tool
Use the AdminApp object for scripted administration
Related Reference
Commands for the AdminApp object