powered by simpleCommunicator - 2.0.60     © 2026 Programmizd 02
Целевая тема:
Создать новую тему:
Автор:
Закрыть
Цитировать
Форумы / Sybase ASA, ASE, IQ [игнор отключен] [закрыт для гостей] / MESSAGE & CALLBACK
3 сообщений из 3, страница 1 из 1
MESSAGE & CALLBACK
    #34384588
panu
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Adaptive Server Anywhere Network Server Version 9.0.2.3420
сообщение посланное с сервера, клиенту,
MESSAGE 'testmess1' FOR CONNECTION 1;
выбирается на клиенте, CALLBACK функцией
только при обращении к БД.
как сделать непосредственный прием сообщений,
не дергая попусту БД



С уважением
...
Рейтинг: 0 / 0
MESSAGE & CALLBACK
    #34384881
White Owl
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Читать BOL.
ASA SQL Reference
SQL Statements
MESSAGE statementThe FOR clause can be used to notify another application of an event detected on the server without the need for the application to explicitly check for the event. When the FOR clause is used, recipients receive the message the next time that they execute a SQL statement. If the recipient is currently executing a SQL statement, the message is received when the statement completes. If the statement being executed is a stored procedure call, the message is received before the call is completed.

If an application requires notification within a short time after the message is sent and when the connection is not executing SQL statements, you can use a second connection. This connection can execute one or more WAITFOR DELAY statements. These statements do not consume significant resources on the server or network (as would happen with a polling approach), but permit applications to receive notification of the message shortly after it is sent. ---
http://www.rusug.ru] Портал русскоязычной группы пользователей Sybase
...
Рейтинг: 0 / 0
MESSAGE & CALLBACK
    #34620675
panu
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
и добавить теперь можно:
почему то CALLBACK выбирает полученные сообщения один раз в 5 секунд, а буфер там всего 10 сообщений если приходит больше сообщений отправленных методом MESSAGE 'testmess1' FOR CONNECTION 1;
то происходит потеря сообщений.
Adaptive Server Anywhere Network Server Version 9.0.2.3500
...
Рейтинг: 0 / 0
3 сообщений из 3, страница 1 из 1
Форумы / Sybase ASA, ASE, IQ [игнор отключен] [закрыт для гостей] / MESSAGE & CALLBACK
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]