Migrating J2C applications from Rational Application Developer V.6.x or V.7.0.0.x

You can import applications created in Rational® Application Developer V.6.x or V.7.0.0.x into your current workspace.

Before you begin

Before you migrate your application, open a new workspace.

Procedure

  1. In a clean workspace, click File > Import.
  2. On the Import page, in the Select an import source field, select General > Archive file, and click Next.
  3. On the Project Imports page, in the From archive file field, click Browse, and navigate to your project that you want to migrate. Select the projects that you want to include in your migration. You do not need to select the J2C Tool plugin Import Service:
    Project interchange
  4. Click Finish, and the workshop migration wizard launches automatically.
  5. On the Rational Desktop Migration page, click Next.
  6. On the Workspace projects which need migration page, select the projects that you want to include in your migration, and click Next.
  7. On the Migration Project Resources page, review the summary of tasks and click Next.
  8. On the Complete Migration Startup page, Click Finish.
  9. Once the migration is complete, you can review the process in the Migration Results view. If you don't see the Migration Results view, select Windows > Show view > Other > Migration > Migration Results, and click Okay.
  10. Post-Migration steps: If your migrated project was created in a version of Rational Application Developer earlier than 6.0.1.5, you have to perform some manual steps to the generated J2C Java™ bean interface and implementation code.
    1. Open the Problems view by selecting Windows > Show view > Problems, and click Okay.
    2. If you see this Error in the Problems view Unhandled exception type ResourceException, then follow these steps to resolve the problem:
      1. Open your J2C Java Bean interface and implementation file, find the Error icon:
        throws error
        Right-click the error icon, and select Quick Fix:
        Quick Fix
        Select Add throws declaration to add a throws javax.resource.ResourceException statement to all the business method declarations:
        Add throws declaration
      2. Use Quick Fix to add the import statement import javax.resource.ResourceException;, if it is missing.
    3. If you see this Error in the Problems view CHKJ3013E: Duplicate 'resource-ref' element named <variable-name> in the ejb-jar.xml, then follow these steps to resolve the problem:
      1. Select Project > Clean... > Clean all projects.
      2. Close and restart the workspace.

Feedback