An EJB 1.1 project can be converted to an EJB 2.x project
using the J2EE Migration Wizard.
About this task
- In the Java EE view, right-click on the 1.1 project, and then
select .
Or, if you want to preserve the original EJB 1.1 project,
you can create a new 2.x project and then import the existing project
JAR file into it ().
Although
the project is an EJB 2.x project, the existing (or imported) EJB
1.1 container-managed persistence (CMP) entity beans remain EJB 1.1
beans. That is, the CMP entity beans are not converted to EJB 2.x.
The
J2EE Migration wizard migrates the enterprise beans within an EJB
2.x project from 1.1 into 2.x. (If you choose to migrate your 1.1
CMP entity beans to 2.x, all beans in the 2.x project must be migrated.
However, you can selectively choose to add local client views to these
migrated 2.x beans.)
- The wizard maintains the existing EJB 1.1 inheritance in the EJB
2.x project.
- The wizard maintains EJB 1.1 (proprietary) relationships into
EJB 2.x (standard) relationships, plus other benefits.
Note: If you have any mapped associations, EJB 2.x associations
are created for the associations themselves, but the role maps for
those associations become invalid. If you run validation, you see
an error occur. To get around this, open the mapping editor first
and save the map. The role maps are removed. You may then run validation
again and remap the roles.