Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 10.0.1 » QAnywhere » Setting Up QAnywhere Messaging » Using push notifications » Configuring push notifications

Configuring push notifications Next Page

Configuring the QAnywhere Notifier


The QAnywhere Notifier is created by MobiLink setup scripts and is started when you run the MobiLink server with the -m option. The QAnywhere Notifier is called QAnyNotifier_client.

QAnyNotifier_client uses the defaults described in MobiLink Notification Properties, with the following exceptions:

You can change the following Notifier properties:

Note

Other than the three properties listed here, you should not change any Notifier properties. Do not change any other columns in the request_cursor.

Poll_every property

You can change the default polling interval of QAnyNotifier_client by changing the value 5 in the following code and running it against your consolidated database:

CALL ml_add_property( 'SIS', 'Notifier(QAnyNotifier_client)', 'poll_every', '5' )

See poll_every property.

Resend interval and time to live

The QAnywhere Notifier contains a default request_cursor. The request_cursor determines what information is sent in a push request, who receives the information, when, and where. You should not change any of the defaults except the resend interval and time to live. The resend interval specifies that an unreceived push notification should be resent every 5 minutes by default. The time to live specifies that an unreceived push notification will be resent for 3 hours by default. In most cases, these defaults are optimal. Following is the default request_cursor that is provided with QAnyNotifier_client:

SELECT 
  u.user_id, 
  ''Default-DeviceTracker'', 
  ''qa'', 
  u.name, 
  u.name, 
  ''5M'', 
  ''3H'' 
    FROM ml_qa_notifications u 
    WHERE EXISTS( SELECT * 
                    FROM ml_listening l 
                    WHERE l.name = u.name AND l.listening = ''y'')

For more information about the columns in the request_cursor, see Creating the push request table.

You can change the resend interval from the default of 5 minutes by changing the value 5M in the following code. You can change the time to live default of 3 hours by changing the value 3H.

CALL ml_add_property( 
  'SIS',
  'Notifier(QAnyNotifier_client)',
  'request_cursor',
  'select u.user_id,
  ''Default-DeviceTracker'',
  ''qa'',
  u.name,
  u.name,
  ''5M'',
  ''3H''
     FROM ml_qa_notifications u 
     WHERE EXISTS( 
        SELECT * 
         FROM ml_listening l WHERE l.name = u.name AND l.listening = ''y'')' )

For more information, see request_cursor property.

See also