nTier Development with Exchange Webstore

Microsoft has developed the concept of nTier development to create web based applications. This method of development allows the application to distribute over many computers which allows for the best results in scalablity and resource allocation. Fitch and Mather stocks and Dwamish books are both examples of scenarios that Microsoft has published to outlay this development platform (See MSDN for whitepapers and samples).

Using Exchange as your datastore is no different then using SQL server. In separating out to 3 tiers: your Data access Layer, from your Business layer and your user presentation layer, you can simply use the same methodology from Fitch and Mather. You can modify the DAL (data access layer) to include a webstore class that centralizes all ADO calls to the Webstore. This DAL will take care of disconnecting the recordset and returning it to the Business layer.

See Example 1 in the tip code on returning a disconnected recordset from an Exchange based DAL...

If you are forward thinking towards .NET, you will notice that XML now the preferred way of passing data between the layers instead of ADO recordsets. You can see examples of this in the newest versions of the Fitch and Mather examples (as well as the Dwamish books examples) on MSDN. To do this, you can simply either use the XML DOM and WebDAV in your DAL and return the XML from the WebDAV call. You can also use ADO to create the XML. Simply use ADO as you would before (see example 1), but stream the recordset out to XML using the ADO stream object and return that stream to the business layer.

See Example 2 in the Tip Code for an example of using ADO to stream your recordset to XML.

Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish