EJB 2 to EJB 3

Refactor your EJB 2.X developments !

What is it ?

The "EJB 2 to EJB 3" modernization project is a simple solution to upgrade your EJB2 developments to EJB3. More precisely, this project also called 'Booster' re-writes your application according to transformation rules. Its aim is not to be exhaustive but rather to be customized and enriched according to your needs.

How does it work ?

The "EJB 2 to EJB 3" booster is supplied with Mia-Modernization. Installing Mia-Modernization will install this booster and the needed Eclipse plugin to use it.

First, you can test it on the sample application supplied in the "example" directory.

Unzip this application, then create a Java project in Eclipse. At least, launch the retro-modelization as shown below :



Indicate where the refactoring result should be saved, by default the original application is overwritten :



Click on the "Transform" button and visualize the result in Eclipse : your application has been transformed.

For more details, please read the supplied documentation.

What are the top features ?

  1. Using composite metamodel
  2. In order to facilitate the customization of the retro-modelization, your application will be loaded as 3 models conformed the following metamodels :

    • the JavaApplication composite metamodel, including the J2SE5 metamodel and the Disk metamodel,
    • the EjbJar2_0 metamodel, reflection of ejb configuration files (ejb-jar.xml)

    The models of the application are linked together to facilitate writing the transformation rules.

  1. Saving the refactored application
  2. Visualize in Eclipse the result of your refactoring thanks to a writer dedicated to the J2SE5 metamodel allowing re-writing your transformed application at the right place. By default, the original application is overriden.

  1. Customizable Solution
  2. Thanks to the transformation engine of Mia-Modernization based on inference rules, you can easily customize your retro-modelization. The rules are specified and written with Mia-Modernization Architect (based on Mia-Transformation). In evaluation model, this booster can be modified up to 15 rules and 5 services.