microsoft newsgroup web access
     dot net    |    ms sql    |    ms access    |    office    |    windows    |   
Microsoft ms sql group
sqlserver.ce
sqlserver.clients
sqlserver.clustering
sqlserver.connect
sqlserver.datawarehouse
sqlserver.dts
sqlserver.fulltext
sqlserver.msde
sqlserver.mseq
sqlserver.notificationsvcs
sqlserver.odbc
sqlserver.olap
sqlserver.programming
sqlserver.replication
sqlserver.reportingsvcs
sqlserver.security
sqlserver.server
sqlserver.setup
sqlserver.tools
sqlserver.xml
  
    

Re: Is there a way to extend NotificationHeader, ReceipientInfo object?



In the Subscription Management application, you maybe able to derive an
object from the Subscription Management Objects and extend it as needed,
overriding methods, etc. Just make sure the base class methods get called.

Keep in mind taht this will not affect the way SQLNS creates its
database objects when you build the instance so you will need to find
another way/place to store the new information and have it available
through the notification process - via UDFs perhaps.

HTH...
Joe Webb

~~~
Get up to speed quickly with SQLNS
http://www.amazon.com/exec/obidos/tg/detail/-/0972688811



sleepyjoe wrote:
> Is there a way to extend NotificationHeader, ReceipientInfo object?
> I mean can I have some more information appended in ReceipientInfo
> other then subscriberID and DeviceAddress? For example I would like to
> add DeviceType, DeviceModelNumber etc. If yes, then how?
>


Thu, 13 Jan 2005 08:39:55 -0600 Joe Webb

Is there a way to extend NotificationHeader, ReceipientInfo object?



Is there a way to extend NotificationHeader, ReceipientInfo object?
I mean can I have some more information appended in ReceipientInfo
other then subscriberID and DeviceAddress? For example I would like to
add DeviceType, DeviceModelNumber etc. If yes, then how?


12 Jan 2005 09:14:11 -0800 "sleepyjoe"

Re: Is there a way to extend NotificationHeader, ReceipientInfo object?



Hello,
If I understand you correctly, I think the more generic question is whether
it's possible to pass custom information to your delivery protocol
implementation at runtime. Is that a fair assessment?

If so, then the answer is yes. You cannot extend the NotificationHeaders or
RecipientInfo classes, but you can define custom "protocol fields". In your
ADF, in the section of your notification class, you can define a
set of fields whose values are computed from SQL expressions you provide.
The results of these SQL expressions, are then passed into your delivery
protocol through the NotificationHeaders object.

For example, in your notification class, you could declare

Thu, 13 Jan 2005 10:32:30 -0800 "Shyam Pather [MSFT]"


COPYRIGHT © 2004, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE
http://www.meetholland.com

advertisement:   complete list of microsoft newsgroup    |    uk based newsgroup    |