Members

Technology Zones

Articles

Hosted By

MaximumASP

Info

Rated
Read 11,849 times

Downloads

Related Categories

Using MSMQ to persist your COM

S.S. Ahmed

I wont go into the details of using MSMQ, you can figure out yourself by looking at the code but the important thing is how we used the property bag to store the information and then later retrieve that information from the property bag to send via MSMQ.

Just look at the code of the class how we made the component persistable by storing the information in the property bags. A property bag object holds information  that is to be saved and  restored across invocations of an object.

A property bag object is passed into an object through the  readproperties event and the writeproperties event in order to save and restore the state of the object. Using the methods of the property bag object, the object can read or write properties of itself. The readproperty method of the propertybag is used to read a value for a property, while the writeproperty method of the propertybag object is used to write a value of a property. The value of a property can itself be an object; in that case the propertybag object will attempt to save it. Also, the code will show you how to use the MSMQ to pass a persistable component to the MSMQ Server.

S.S. Ahmed is a senior IT Professional and works for a web and software development firm. Ahmed is a Microsoft Office SharePoint Server MVP. Ahmed specializes in creating database driven dynamic web sites. He has been working with SharePoint for the last 3-4 years. He develops customized SharePoint solutions. Ahmed likes to hop into other tools as well. Ahmed has used Project Server, InfoPath and BizTalk. Ahmed enjoys travelling and has been to many parts of the world. Web: www.walisystems.com Blog: www.sharepointblogs.com/ssa

Comments