Migrating Enterprise JavaBeans projects (EJB 1.1 to EJB 2.1)

Migrating an EJB project from the EJB 1.1 to EJB 2.1 specification level is described in this section.

Migrating an EJB project from EJB 1.1 to EJB 2.1 involves the migration of container-managed persistence (CMP) entity beans.

There have been no changes in entity beans between J2EE 1.3 and J2EE 1.4 specification level. Migrating CMP entity beans from the EJB 1.1 to EJB 2.1 specification level is accomplished the same way as migrating a CMP entity bean from EJB 1.1 to EJB 2.0. Migrating container-managed entity beans from EJB 1.1 to EJB 2.x specification level requires the following steps:

  1. Convert the EJB project from EJB 1.1 to EJB 2.x.

  2. Migrate the EJB code from EJB 1.1 to EJB 2.x.

  3. Migrate any user-defined EJB 1.1 references to local references in EJB 2.x.

Converting projects from EJB 1.1 to EJB 2.x
An EJB 1.1 project can be converted to an EJB 2.x project using the J2EE Migration Wizard.

Migrating code from EJB 1.1 to EJB 2.x
For projects converted from EJB 1.1 to EJB 2.x, steps must be taken to migrate existing EJB 1.1 code to EJB 2.x.

Migrating EJB references for EJB 1.1 relationships
When creating EJB 1.1 relationships were created, EJB references were created to the Remote Client view. During the EJB 1.1 project migration using the J2EE Migration Wizard, these EJB remote references for the EJB 1.1 relationships are removed and replaced with EJB local references. Local references for user-defined EJB references must be recreated manually.

Method elements are merged during project structure migration
During the project structure migration using the J2EE Migration Wizard, the method elements (that include security identity, container transaction, method permissions, access intent and isolation levels) of the same type for all the beans are merged to make them logically grouped.

 

Parent topic

J2EE 1.2 to 1.4 specification level migration

 

Related tasks

Converting projects from EJB 1.1 to EJB 2.x
Migrating code from EJB 1.1 to EJB 2.x
Migrating EJB references for EJB 1.1 relationships

Related reference
J2EE 1.2 to 1.4 specification level migration
Web projects (Servlet level 2.2 to Servlet level 2.4)
Method elements are merged during project structure migration