Migrating MobileFirst 7.0 to 8.0 - server classes

139 views Asked by At

I executing migration from a mobilefirst 7.0 project to mobilefirst 8.0

In 7.0 project there are some java files that does not belong to Adapters, but to server (utils and constant classes, for example).

Checking official documentation for migration purposes, I have not beenable to find anything about how to manage these kind of files.

Anyone could provide me some information about how to migrate this logic?

2

There are 2 answers

0
Vivin K On BEST ANSWER

With MFP 8.0, the concept of packaging custom Java classes within the runtime war file does not exist.

However, you can still use the custom Java classes:

  1. For the custom Java classes that would become your CustomLoginModule/Authenticator:

    With MFP 8.0, customLoginModules and authenticators are replaced by SecurityCheck adapters. These are maven projects. The validation and code that was in your custom classes can be in your SecurityCheck adapter project.

    Details here.

  2. For custom Java classes that are invoked from Javascript adapters:

    Javascript adapters are also maven projects. And the custom classes can be a part of the JS adapter project.

    Details here.

  3. Any other common / utility classes/jar files:

    Add any JAR files that are not in the Maven repository:

More reading about migrating adapters from earlier versions to MFP 8.0.

0
Arun Punnath On

We had similar issue but we tackled it by moving the code to Javascript adapters(incase of static values). But in case of Pure Java code you have to use Java adapter because in MFP 8 we cannot put java files in the servers as the concept of WAR deployment is not there.