Updating the DataSource value
In WebSphere Commerce 8.0, a default DataSource value is not set, and all EJB projects must now define a specific DataSource.
About this task
Check the DataSource value in all custom EJB projects and others that you modified based on IBM EJB projects. If you are basing your custom projects on IBM EJB projects, you can accidentally overwrite the correct values. It is a good practice to double check the values before you generate the deployed code.
Procedure
- In the Enterprise Explorer view , expand EJB Projects and then expand the EJB project that is being migrated. Double-click Deployment Descriptor to open up the deployment descriptor editor.
-
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 your database type. For
example, if your instance name is demo, enter the following values:
- jdbc/WebSphere Commerce DB2 DataSource demo
- jdbc/WebSphere Commerce Derby DataSource demo
- jdbc/WebSphere Commerce Oracle DataSource demo
- Save your changes and Regenerate your deployed code.