Recovering From SAP Mobile Server Failures

Add application code to check for and recover from SAP Mobile Server failures.

It is highly recommended that you add a catch call to all synchronize methods (synchronize(), begingSynchronize(), and so on) within your applications to allow the application to recover if SAP Mobile Server fails and needs to be restored from an older database. If not, you may have to reinstall the application manually for all users so they can resynchronize with SAP Mobile Server.

See Restoring from an Older Backup Database File (Data Loss) in the System Administration Guide for information about SAP Mobile Server recovery.

As a best practice, and not included in these examples, application developers should include code that informs mobile application users about:
  • What is going to happen (for example, reregistering, recreating the local database, and so on). And,
  • The reason for the action (for example, lost registration, server is restored, and so on).
And prompt them for confirmation before executing the code.