sql server - Service Broker External Activator doesn't deal with all messages in queue -
i have setup external activator, executes simple application (as startup) , run following sql statement
waitfor(receive top(1) * [dbo].[dbtriggersqueue]), timeout 5000;
i have update trigger on table, adds messages queue.
my problem if run several update scripts(4 updates 1 after another) adds messages queue , sbea receives event notification, receives 1-2 event notifications (according eatrace log) , therefore 2 messages dealt simple app.
does know causing notifications being sent or received sbea after initial 1/2?
it seems time, because if run each of update scripts few second delay event notification gets sent per update , messages dealt with.
activation not per-message trigger. when you're activated you're supposed receive messages. once activated keep issuing receive statements , process messages until receive returns empty result set. read more details @ understanding when activation occurs.
Comments
Post a Comment