WebSphere Tutorial · Running WebSphere in Production · Lesson 22 of 23
Migrating from Traditional WAS to Liberty
How to move applications from traditional WebSphere to Liberty: assessment tools, configuration, code changes, testing and cut-over.
Assess
IBM's Transformation Advisor and the WebSphere Application Server Migration Toolkit (including its binary scanner) analyse applications and report:
- APIs not available on Liberty (some IBM proprietary APIs, older Java EE technologies),
- behaviour differences to check,
- the Liberty features needed and a generated starting
server.xml, - an estimate of effort.
Move
- Generate
server.xmlfrom the traditional configuration (data sources, JMS, security) and review it. - Fix code issues; replace proprietary APIs with standard ones; plan the
javax→jakartachange if moving to Jakarta EE 9 or later (tools can transform binaries or source). - Build and test on Liberty, including performance tests (thread and GC behaviour differ).
- Run both side by side and move traffic gradually; keep the traditional environment as a fallback until stable.
Many web applications that use standard APIs move with little code change; heavy users of proprietary features need more work.
findings = [("uses standard servlet/JAX-RS APIs", 0), ("IBM proprietary API in 3 classes", 3),
("JAX-RPC web service client", 8), ("custom user registry", 5), ("javax -> jakarta namespace", 2)]
total = sum(days for _, days in findings)
for issue, days in findings:
print(f"{issue:34} {days:2} days")
print(f"{'estimated effort':34} {total:2} days")
Output
uses standard servlet/JAX-RS APIs 0 days IBM proprietary API in 3 classes 3 days JAX-RPC web service client 8 days custom user registry 5 days javax -> jakarta namespace 2 days estimated effort 18 days
Test yourself
What's a good first step in a traditional-to-Liberty migration?
Rewrite the applicationRun Transformation Advisor or the binary scanner on the applicationDelete the traditional cellSwitch to parent-last everywhere
Show answer
Answer: Run Transformation Advisor or the binary scanner on the application
Assessment tools show what must change and generate starting configuration.