Sign In
Microsoft BizTalk RFID with KalyanaJ
The Ins and outs of what you can do with BizTalk RFID...
Translate This Page
Translate this page
Powered by
Microsoft® Translator
Options
Blog Home
About
Email Blog Author
Share this
RSS for posts
Atom
RSS for comments
Search
Advanced search options...
Search In:
Everything
Blogs
Forums
People
Groups
Places
Pages
Date range:
All Time
Last Year
Last 6 Months
Last 3 Months
Last Month
Last Week
Last Two Days
Tags
BizTalk RFID
Device Management
Documentation
Miscellaneous
Archive
Archives
January 2009
(1)
December 2008
(2)
September 2008
(1)
August 2008
(2)
April 2008
(1)
October 2007
(1)
September 2007
(7)
April 2007
(1)
April 2006
(2)
Management Events in BizTalk RFID
MSDN Blogs
>
Microsoft BizTalk RFID with KalyanaJ
>
Management Events in BizTalk RFID
Management Events in BizTalk RFID
kalyanaj
17 Apr 2008 12:22 AM
Comments
1
Sorry about the long hiatus - things have been pretty hectic in the last few months. Planning to catch up on all the missed blogging in the coming few weeks (things will always be hectic, so why wait any longer :)) !! If you have any specific topics in mind that you want the BizTalk RFID team to blog about, please send me a note.
Today, there was an interesting question from one of our IHV partners about the management events hierarchy, so that brings us to this post:
BizTalk RFID supports the concept of management events. A management event is an asynchronous event that can originate from a device or the device provider or even from the BizTalk RFID Service to notify the occurence of a specific condition.
Examples of management events:
1) An event "BizTalk RFID Service discovered a new device" (DeviceDiscoveryEvent) raised by BizTalk RFID Service. This is an example of an informational event.
2) An event "The source <foo> of Device <bar> is currently down" (SourceDownEvent) raised by the device provider. This is an example of a warning/error event.
For event handlers / apps / management consoles:
So, how can one subscribe to these events? BizTalk RFID Service exposes them to the outside world in two ways:
1) BizTalk RFID Service fires the management event as a WMI event. This applies to the events that originated from the device/provider and also the events that originated from the Service itself. The "RFID Tray" application that ships with BizTalk RFID (you can find it in the shortcuts in the programs menu) is an example of a "WMI consumer" application that subscribes to such events and displays them in its UI.
2) BizTalk RFID Service sends the management event to the RFID Process pipeline (i.e. notifies interested processes). This applies only to events that originated from the device/provider and not for events originating from the service. For e.g. if you have process P1 that was bound to device "D1" and if there is a BatteryLowEvent from this device, it will be sent to P1's process pipeline.
So, you can see that the above kind of events can be useful for a RFID administrator or an Event Handler writer to know about these conditions and take appropriate action when required. If you have MOM, you can use the
MOM Pack
as well.
There are a whole bunch of standard management events defined by BizTalk RFID - you can see the full list of derived classes from the base class documentation at
http://msdn2.microsoft.com/en-us/library/microsoft.sensorservices.rfid.management.managementevent.aspx
For Provider Writers:
If you look at the hierarchy of the management events defined in the DSPI, there is a class ManagementEvent from which there are three derived classes:
i) DeviceManagementEvent
ii) ProviderManagementEvent
iii) ServerManagementEvent
All the derived classes from DeviceManagementEvent (
http://msdn2.microsoft.com/en-us/library/bb656891.aspx
) and all the derived classes from ProviderManagementEvent fall in the domain of the provider; for e.g. the SourceDownEvent derives from DeviceManagementEvent and you should strongly consider supporting this in your provider/device. Anything which derives from ServerManagementEvent falls in the domain of BizTalk RFID Service (i.e. service will raise such events).
Also, please make sure your device capabilities is in sync with the management events that you support in your provider. For e.g. if you support SourceDownEvent, include that in your
device capabilities
.
1 Comments
Blog - Comment List MSDN TechNet
Comments
Loading...
Leave a Comment
Name
Comment
Please add 4 and 3 and type the answer here:
Post