all groups > sql server notification services > september 2004 >
You're in the

sql server notification services

group:

Thread Safety - Delivery Protocol x Delivery Channels


Thread Safety - Delivery Protocol x Delivery Channels William
9/17/2004 6:13:31 PM
sql server notification services:
Hi,

I have a custom delivery protocol, which is described in
the appconfig.xml file as several delivery channels -
each with varying parameters passed.

I'm finding some of the delivery channel arguements are
being reset at various times and it looks like there
might be a thread safety issue here.

To recap - one delivery protocol, SQL NS std, multiple
delivery channels, class variable corruption.

Thread Safety - Delivery Protocol x Delivery Channels William
9/19/2004 1:20:52 PM

[quoted text, click to view]

Ok, I should have read the documentation properly!

"The methods on a single delivery protocol instance are
called only by a single thread, so accesses to instance
data do not need to be thread-safe. Multiple protocol
instances might possibly be called on multiple threads,
so accesses to shared class-wide data must be thread
AddThis Social Bookmark Button