Migrate from WebSphere traditional to Liberty
Recipe ID
org.openrewrite.java.liberty.MigrateFromWebSphereToLibertyArtifact
org.openrewrite.recipe:rewrite-libertyUse this category of rules to identify code changes needed when migrating from WebSphere Application Server traditional to Liberty.
Usage
This recipe has no required configuration options. You’ll need the Moderne CLI configured before running the command below.
mod run . --recipe org.openrewrite.java.liberty.MigrateFromWebSphereToLibertyIf the recipe isn’t available locally, install it with:
mod config recipes jar install org.openrewrite.recipe:rewrite-liberty:1.26.0Definition
This recipe runs the following recipes in order.
- Removes invalid JNDI properties
org.openrewrite.java.liberty.RemoveWas2LibertyNonPortableJndiLookup - Replace
WSPrincipal.getCredential()withWSSubjectlookuporg.openrewrite.java.liberty.ReplaceWSPrincipalGetCredential - Use
getProperty("wlp.server.name")org.openrewrite.java.liberty.ServerName - Use
getSSOCookieFromSSOTokenandlogoutorg.openrewrite.java.liberty.WebSphereUnavailableSSOMethods - Use correct application namespace values
org.openrewrite.xml.liberty.AppDDNamespaceRule - Use correct connector namespace values
org.openrewrite.xml.liberty.ConnectorDDNamespaceRule - Use correct ejb-jar namespace values
org.openrewrite.xml.liberty.EJBDDNamespaceRule - Move persistence.xml file
org.openrewrite.xml.liberty.PersistenceXmlLocationRule - Use correct web-app namespace values
org.openrewrite.xml.liberty.WebDDNamespaceRule - Add Liberty Maven plugin
org.openrewrite.maven.liberty.AddOpenLibertyPlugin
Data tables
Structured output this recipe can produce.
- Source files that had resultsSource files that were modified by the recipe run.
org.openrewrite.table.SourcesFileResults - Source files that had search resultsSearch results that were found during the recipe run.
org.openrewrite.table.SearchResults - Source files that errored on a recipeThe details of all errors produced by a recipe run.
org.openrewrite.table.SourcesFileErrors - Recipe performanceStatistics used in analyzing the performance of recipes.
org.openrewrite.table.RecipeRunStats