Change and install a new EJB dbschema database name
This process must be performed if all of the following apply to the applications that you plan to migrate:
- You have container managed persistence (CMP) entity beans in your application.
- The deployed code for these enterprise beans was generated specifying a blank database schema.
- You are migrating the applications to WAS Version 5.0 or Version 5.0.1. This does not affect application migrated to Version 5.0.2 and later releases.
If your application does not meet all of these requirements, then you do not have to change and install a new EJB dbschema database name.
- Generate a new enterprise application with your database name
During migration the dbschema name is hard-coded to EJB. To change the dbschema name, map a network drive from your workstation to the iSeries where the WebSphere installation resides. Use the Application Assembly Tool to perform these steps:
- Click File --> Open.
- Locate the QIBM/UserData/WebAS5/Base/instance/installableApps/ directory on your mapped iSeries drive. Open your newly generated ear file.
- Click File --> Generate code for deployment....
- Specify these properties:
- Deployed module location: Note the module location for future reference.
- Database name: Specify the name of the datasource database.
- Database type: Clear the name of the datasource database.
- Click Generate Now.
- Click Close.
- Click File --> Exit.
Remove the enterprise application with database name EJB, and install your newly deployed enterprise application
Use the WAS Version 5 administrative console to delete the existing enterprise application and install the newly deployed enterprise application from the EAR file. For more information on how to install and uninstall applications, see Install and uninstall applications in the Administration topic.
- In the administrative console, expand Applications, and click Enterprise Applications.
- Select migrated enterprise application and click Stop.
- Select migrated enterprise application and click Uninstall.
Install your newly generated enterprise application:
- In the administrative console, expand Install New Appplication.
- Click Browse.
- Specify the deployed module location from the first step.
- Navigate to /QIBM/UserData/WebAS5/Base/instance/installableApps/Deployed_yourApplication.ear on the mapped network drive. Select the EAR file and click Open.
- Click Next.
- On the Prepare for the application installation panel, click Next.
- On the Install New Application panel, click Step 10. Steps 1 through 10 may be adusted, to customize the application to your environment.
- Click Finish.
Start the enterprise application
- Click Enterprise Applications.
- Select your enterprise application and click Start.