Migrate to Java EE 7

MSAL

Apply changes needed when migrating to Java EE 7, such as replacing the OpenJPA persistence provider with EclipseLink, setting an explicit JPA shared cache mode, aligning the beans.xml schema location, and making @Produces fields in session beans static. Includes the Java EE 6 migration.

org.openrewrite.java.migrate.javaee7
mod run . --recipe=org.openrewrite.java.migrate.javaee7

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.

Recipe list

It runs these recipes, in this order.

  1. Migrate to Java EE 6
  2. Replace the OpenJPA persistence provider with EclipseLink in persistence.xml
  3. Disable the persistence unit second-level cache
  4. Change beans.xml schemaLocation to match XML namespace
  5. Add static modifier to @Produces fields in session beans