Migrating
Follow this tutorial for a full-fledged migration from IBM MobileFirst Platform Version 8.0 to the Persistent Mobile Foundation Version 9.0.x.
Migrating existing applications to PMF SDKs
You can add support to your existing applications Persistent Mobile Foundation Version 9.0.x features existing applications by adding the PMF SDK plug-ins to your app, for more information refer the following links.
Migrating existing MFP 8.0 to PMF 9.0.3
Prerequisites
- Java™ setup - Add
Java
andjava_home
path to the environment variables. - Database setup - You should have all the mandatory details like host, port, username, password, dbname, schema name,and driver jar.
- IBM® WebSphere setup should be up and running.
- You have
PMF-PKG-<version>.zip
file provided by Persistent team.
Preinstallation checks
-
Check
Java
andjava_home
path by using the following command.Java -version echo $JAVA_HOME
-
Check if PMF Operations Console is accessible.
<protocol>://<host>:<port>/mfpconsole
-
Check WAS to the database connectivity by using the following commands.
nc -w5 -z -v <ip_address> <port_number>
Migration plan strategy
- Database backup
- Service interruption (Downtime starts)
- Stop
<MF>
server and backup (WebSphere directory) - Migrate
<MF>
server to PMF 9.0.3. - Servers is ready for sanity test and end-to-end test with sample app or live apps. (Customer test time)
- Service resume with PMF 9.0.3 on
<MF>
.
Backup server strategy
- Stop
<MF>
server. -
Backup WebSphere Application Server installation directory by using the following command.
tar -cvzf Websphere.tar.gz Websphere
Rollback plan strategy
You can revert to MFP 8.0 from PMF 9.0.3 using the WebSphere Application Server directory backup that was done in the Backup server section.
Procedure
- Stop
<MF>
server. -
Rename
Websphere
directory toWebsphere_PMF
by using the following command.mv Websphere Websphere_PMF
-
Revert
WebSphere
directory to previous MFP stage by using the following command.tar -xvzf Websphere.tar.gz
- Start
<MF>
server. - Services resume with MFP 8.0.
Migration prerequisites
Upload PMF product to server as follows.
- Create PSL directory inside
/opt
. -
Upload
PMF-PKG-<version>.zip
to/opt/PSL/
and extract by using the following command.unzip PMF-PKG-<version>.zip
-
Provide permissions by using the following command.
chmod 775 -R /opt/PSL
Updating PMF Analytics Receiver component
-
Go to
/opt/PSL/Persistent_Mobile_Foundation/AnalyticsReceiver/configuration-samples
and editconfigure-liberty-analytics-receiver.xml
file to set the values of the jndi properties.Note: You can refer previous IBM Mobile First Platform
configure-liberty-analytics-receiver.xml
file. - Save the file after the properties are defined.
-
Run the following command to show a list of possible targets for the Ant file.
cd /opt/PSL/Persistent_Mobile_Foundation/tools/apache-ant-1.9.4/bin ./ant -f /opt/PSL/Persistent_Mobile_Foundation/AnalyticsReceiver/configuration-samples/configure-liberty-analytics-receiver.xml
-
Run the following command to migrate analytics receiver component.
./ant -f /opt/PSL/Persistent_Mobile_Foundation/AnalyticsReceiver/configuration-samples/configure-liberty-analytics-receiver.xml update
Updating PMF Analytics component
-
Go to
/opt/PSL/Persistent_Mobile_Foundation/Analytics/configuration-samples
and editconfigure-liberty-analytics.xml
to set the values of the jndi properties.Note: You can refer previous IBM Mobile First Platform
configure-liberty-analytics.xml
file. - Save the file after the properties are defined.
-
Run the following command to show a list of possible targets for the Ant file.
cd /opt/PSL/Persistent_Mobile_Foundation/tools/apache-ant-1.9.4/bin ./ant -f /opt/PSL/Persistent_Mobile_Foundation/Analytics/configuration-samples/configure-liberty-analytics.xml
-
Run the following command to analytics component.
./ant -f /opt/PSL/Persistent_Mobile_Foundation/Analytics/configuration-samples/configure-liberty-analytics.xml update
- Start the
<MF>
server. -
Go to browser and verify Analytics Console.
http://<host>:<port>/analytics/console
Updating PMF Application Center component
-
Go to
/opt/PSL/Persistent_Mobile_Foundation/ApplicationCenter/configuration-samples
and editconfigure-appcenter-liberty-db2.xml
to set the values of the jndi properties.Note: You can refer previous IBM Mobile First Platform
configure-appcenter-liberty-db2.xml
file. - Save the file after the properties are defined.
-
Run the following command to show a list of possible targets for the Ant file.
cd /opt/PSL/Persistent_Mobile_Foundation/tools/apache-ant-1.9.4/bin ./ant -f /opt/PSL/Persistent_Mobile_Foundation/ApplicationCenter/configuration-samples/configure-appcenter-liberty-db2.xml
-
Run the following command to migrate appcenter component.
./ant -f /opt/PSL/Persistent_Mobile_Foundation/ApplicationCenter/configuration-samples/configure-appcenter-liberty-db2.xml update
- Start the
<MF>
server. -
Go to browser and verify Application Center Console.
http://<host>:<port>/appcenterconsole
Updating PMF Admin, runtime, LiveUpdate, push components
-
Go to
/opt/PSL/Persistent_Mobile_Foundation/MobileFoundationServer/configuration-samples
and editconfigure-liberty-db2.xm
l to set the values of the jndi properties.Note: You can refer previous IBM Mobile First Platform
configure-liberty-db2.xml
file. - Save the file after the properties are defined.
-
Run the following command to show a list of possible targets for the Ant file.
cd /opt/PSL/Persistent_Mobile_Foundation/tools/apache-ant-1.9.4/bin ./ant -f /opt/PSL/Persistent_Mobile_Foundation/MobileFoundationServer/configuration-samples/configure-liberty-db2.xml
-
Run the following command to migrate admin component.
./ant -f /opt/PSL/Persistent_Mobile_Foundation/MobileFoundationServer/configuration-samples/configure-liberty-db2.xml admupdate
-
Run the following command to migrate runtime component.
./ant -f /opt/PSL/Persistent_Mobile_Foundation/MobileFoundationServer/configuration-samples/configure-liberty-db2.xml rtmupdate
-
Run the following command to liveupdate component.
./ant -f /opt/PSL/Persistent_Mobile_Foundation/MobileFoundationServer/configuration-samples/configure-liberty-db2.xml liveupdateupdate
-
Run the following command to push component.
./ant -f /opt/PSL/Persistent_Mobile_Foundation/MobileFoundationServer/configuration-samples/configure-liberty-db2.xml pushupdate
- Edit
config.properties
file and whitelist your servers./opt/PSL/Websphere/Liberty/usr/servers/<servername>/config.properties
- Start the
<MF>
server. - Go to browser and verify Admin Console.
http://<host>:<port>/mfpconsole