We would like to migrate an application written using EJB2.1 beans (both Entity and Sessions beans) to EJB3 to improve on maintanance and use new features in the EJB3 spec.
How would we do the migration and give the users the guarantee (if any) that the migrated system still works just as the old one. The original app didn’t have test cases.
I highly recommend to get EJB 3 in Action. It has a whole chapter dedicated to the migration to EJB 3 in which the authors explain how you can mix EJB 2.x and EJB 3, how to convert an application completely to EJB 3, provide guidelines for the migration of EJB 2.x component to EJB 3. Quoting the conclusion of the chapter:
IMO, getting a copy would be well worth it.
Meanwhile, here are a few articles that might help:
Creating integration and/or functional tests before the migration of each business flow is a must if you want to guarantee you won’t introduce any regression. I consider this task to be part of the migration.