Version 1.0
This document explains how to use the Migration Tool for Sun Java System Application Server 8 (hereafter called the Migration Tool) to migrate the Survey application from the J2EE Reference Implementation 1.3 source server to the Sun Java System Application Server 8 target server. The document also explains how to assemble, deploy, and run the sample application on the target server.
This document contains the following sections:
Overview
Migrating the Application
Deploying and Running the Migrated Application on the Target Server
JCA Overview describes the JCA sample application.
This section describes how to migrate the application from the source server (J2EE Reference Implementation 1.3) to the target server (Sun Java Systems Application Server 8).
On Solaris:
<ASMT_HOME>/bin> sh asmigrate.sh -u
On Windows:
<ASMT_HOME>\bin> asmigrate -u
Invoking the Migration Tool in Command-Line Mode explains how to run the Migration Tool in command-line mode.
The Migration Tool creates a directory structure that contains the expanded archive, modified files, and generated build scripts in the output directory that you selected.
Open the sun-ra.xml file, which the Migration Tool generates in the <OUTPUT_DIR1>/Input_Archives/Rars/connector-ic/META-INF directory, in a text editor and change the following value:
<sun-connector>
<resource-adapter jndi-name="REPLACEME" . . . >
</resource-adapter>
.
.
</sun-connector>
to:
<sun-connector>
<resource-adapter jndi-name="eis/Comet" . . . >
</resource-adapter>
.
.
</sun-connector>
This JNDI name was specified when the resource adapter was originally deployed on the source server to bind the JNDI name for the Connection Factory to the RAR file.
The build script generates the <OUTPUT_DIR1>/Input_Archives/Rars/connector-ic/asmtbuild/Rar1.rar file.
The Migration Tool creates a directory structure that contains the expanded archive, modified files, and generated build scripts in the output directory that you selected.
The build script generates the <OUTPUT_DIR2>/Input_Archives/asmtbuild/JCATEST.ear file.
asadmin set --user <username> --password <password> server-config.java-config.classpath_suffix=<ASMT_HOME>/examples/j2ee_ri_1_3/JCA/backend.jar
asadmin deploy --user username --password password --host hostname --port adminport <OUT_DIR1>/Input_Archives/Rars/connector-ic/asmtbuild/Rar1.rar asadmin deploy --user username --password password --host hostname --port adminport --type application <OUT_DIR2>/Input_Archives/asmtbuild/JCATEST.ear
% java -classpath <pathtobackend.jar>/backend.jar Server 8020
http://<machine_ip>:<port>/CometEJB/startForm.jsp