How to move your applications
This article provides tips for moving applications to other servers and switching module groups.
Moving applications from one server to another
The package command can be used to help move your
applications. package produces a ZIP file of the
application directory, which can then be transferred and unzipped onto
another server.
- Start by invoking
zero packagein the application's home directory. For example, to package applicationmyapplocated atC:\zeroapps\myapp, change directory toC:\zeroapps\myappthen invokezero package. - Transfer the generated ZIP file to the other server. (Console
output from
zero packageincludes a pointer to the generated file, which will be located in the application's export directory.) - Extract the ZIP file on the other server. Note that the ZIP file
includes the application directory. For example, extracting the ZIP
file into
D:\other\zeroappsyields the new application home directory atD:\other\zeroapps\myapp. - Resolve the application by invoking
zero resolvefrom the application's home directory. Even if versions don't change, this step is required to fix the paths to modules in the local repository.
Migrating applications to another module group
- Install the WebSphere sMash command-line interface (CLI) using the installer (available from IBM).
- Migrate each application to the "stable" module group by invoking
zero switch stablein the root directory of the application. For example, to switch applicationmyapplocated atC:\zeroapps\myapp, change directory toC:\zeroapps\myappthen invokezero switch stable.
Evaluating the success/failure of the migration
Migration should be treated like any other change in software development.
Successful migration means that the application runs correctly with the new dependencies. Before you can claim success, you must complete the migration steps, then perform adequate testing within the new run-time environment.
The following pointers might help you along the way.
Interpreting console output from the switch command
The switch command performs the equivalent of an update
command after changing the module group. This will succeed as long as the
dependencies can be satisfied from the new module group. If those dependencies
are already available in the local repository, then the console output will be
simple, such as:
switch can also succeed by retrieving missing dependencies
from the remote repository. The corresponding console output describes the
operation, such as:
switch fails if it's unable to obtain the dependencies. One
cause of failure would be if the application used a not-yet-released module
from the experimental module group. The console output indicates the problem
and cancels the switch operation, such as: