Sun Java System Application Server Enterprise Edition 8.2 Upgrade and Migration Guide

Migrating the Application by Using the Migration Tool

You can run the Migration Tool in GUI or command-line mode.

To start the Migration Tool on Solaris and Linux in GUI mode, type the following command at the shell prompt:

<install-dir>/bin/asmigrate.sh -u

To start the Migration Tool on Solaris and Linux in command—line mode, type the following command at the shell prompt:

<install-dir>/bin/asmigrate.sh -c -S <sourceserver> -t <targetdirectory> -T <targetserver> <operand>
or
install-dir>/bin/asmigrate.sh -c -S <sourceserver> -s <sourcedirectory> -t <targetdirectory> -T <targetserver>

To start the Migration Tool on Windows, perform the following steps:

  1. Open a DOS command-prompt window.

  2. Change to the directory in which you have installed the Application Server 8.2.

  3. To start the Migration Tool in GUI mode, type the following command at the DOS prompt:

    asmigrate.cmd -u

    Or, to start the Migration Tool in command—line mode, type the following command at the DOS prompt:

    asmigrate.cmd -c -S <sourceserver> -t <targetdirectory> -T <targetserver> <operand> 
    or
    asmigrate.cmd -c -S <sourceserver> -s <sourcedirectory> -t <targetdirectory> -T <targetserver>

For more information on the command-line options of the asmigrate command or the Migration Tool, refer http://java.sun.com/j2ee/tools/migration/doc/run.html#CLI

For step-by-step instructions on how to use this tool to migrate your application, refer http://java.sun.com/j2ee/tools/migration/doc/StepByStep.html or the Migration Tool Online Help.

After the Migration Tool migrates your J2EE application, you need to analyze the Migration report to know what additional changes you need to make to the generated output application. You make these changes and then deploy the migrated application. For details on how to perform these tasks, refer http://java.sun.com/j2ee/tools/migration/doc/postrun.html.