Migrate > Migrating WebSphere Commerce Developer > Migrating custom assets > Migrating EJB projects



Update the DataSource value

In WebSphere Commerce releases prior to WebSphere Commerce 6.0, a global default DataSource reference was defined. All independent EJB projects that did not explicitly define a DataSource would use the default DataSource. In WebSphere Commerce 6.0 this default value is not set and all EJB projects must now define a specific DataSource.

IBM recommends to check the DataSource value in all custom EJB projects and others that you modified based on IBM EJB projects. If you are basing the custom projects on IBM EJB projects you can accidentally overwrite the correct values. It is a good practice to double check it before generating the deployed code.


Procedure

  1. In the Enterprise Explorer view , expand EJB Projects and then expand the EJB project that is being migrated. Double click on Deployment Descriptor to open up the deployment descriptor editor.

  2. In the EJB Deployment Descriptor Editor, in the Overview tab, scroll down to the JNDI - CMP Connection Factory Binding section and in the JNDI name field enter the value that matches the database type. For example, if the instance name is demo, enter the following values:

    • DB2 jdbc/WebSphere Commerce DB2 DataSource demo

    • Apache Derby jdbc/WebSphere Commerce Cloudscape DataSource demo

    • Oracle jdbc/WebSphere Commerce Oracle DataSource demo

  3. Save the changes and Regenerate the deployed code .

    You may need to regenerate the CMP using Rational Application Developer v7.5.x when migrating to a significantly more current version of the database engine.


+

Search Tips   |   Advanced Search