We have Java EE 8 EAR made up of different modules/projects. It is currently running on WildFly 19.0.0 Final however we're thinking to move it on the latest WildFly (Jakarta EE). If I understand correctly from version 21.0.0 WildFly is 100% Jakarta EE Full & Web distribution and should we want to move to jakarta ee all we have to do is to change the dependency javaee-api to jakarta.jakartaee-api and update all our imports from javax.* to jakarta.* Is that correct?
Can we run our application as-is on WildFly >= 21.0.0 or is it compulsory for us to recompile it with jakarta dependencies?
Because some of the sub-projects are legacy (i.e. they have javax.* imports) Is it possible to build a single EAR where some sub-projects have javax.* imports whereas others have jakarta.* imports?
In general what's the best way to deal with a scenario where some sub-projects of our EAR are legacy (i.e. they have javax.* imports) whereas other can be migrated to jakarta dependencies & imports?
Thanks