To enable push synchronization, you must edit a configuration file and then stop and restart the Enterprise Server. You perform these tasks outside the Admin Console.
Open the file gmp-domain-dir/lib/ds/conf/gateway.conf in a text editor (gmp-domain-dir is the location of the Enterprise Server domain for Sun GlassFish Mobility Platform).
Locate the following line:
push.polling.check_interval = 0
Change the 0 to a value that specifies how often, in milliseconds, the Gateway Engine should check for updates on the EIS/EAI system or database. The following setting specifies an interval of two minutes:
push.polling.check_interval = 120000
Save and close the file.
Stop the Enterprise Server (as-install represents the directory where the Enterprise Server is installed):
as-install/bin/asadmin stop-domain mep |
Start the Enterprise Server again:
as-install/bin/asadmin start-domain mep |
You may be prompted for the master password (the default is adminpass). If not, you may need to specify the location of the password file, which is located in the directory where the download bundle forSun GlassFish Mobility Platform was unzipped:
as-install/bin/asadmin start-domain --passwordfile install-dir/sgmp-1_1-fcs-operating-system/password.txt mep |
where install-dir is the directory where you placed the download bundle.
After you restart the Enterprise Server, the Preferences tab contains three panels. In the Push Strategies panel, the OMA DS Server Alert checkbox is selected, indicating that push synchronization is enabled.