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.
About this task
- In the J2EE Hierarchy 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 will maintain the existing EJB 1.1 inheritance in the EJB 2.x project.
- The wizard will migrate 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
will be created for the associations themselves, but the role maps
for those
associations will become invalid. If you run validation, you will
see an error
occur. To get around this, open the mapping editor first and save
the map.
The role maps will be removed. You may then run validation again and
re-map
the roles.