Running the Script Engine in MTS

You can place the Event Scripting Agent (Scripto.dll) into MTS, which allows you to run the Scripting Agent using a specific Windows NT account for security purposes and also to run the Scripting Agent in a dedicated and isolated process. MTS will manage instantiating the Scripting Agent as well as shutting it down if any anomalies occur during processing.

To make it easier for you to install the Event Scripting Agent as an MTS component, Microsoft Exchange Server 5.5 includes a prebuilt MTS package for you to use. To install the package, follow these steps:

  1. Make sure you have MTS installed on the server where you are running the Event Service. As of the writing of this book, the latest version of MTS is version 2.0, and it ships with the Windows NT 4.0 Option Pack.
  2. Start the MTS Explorer by accessing the Start menu and then selecting Programs, Windows NT 4.0 Option Pack, Microsoft Transaction Server, and Transaction Server Explorer.
  3. Locate the name of your computer in the Computers tree.
  4. Select the folder named Packages Installed, and from the Action menu, select New and then Package.
  5. Click the Install Pre-Built Packages button.
  6. Click the Add button, and find the Scripto.pak file on the Exchange Server 5.5 CD in the Server\Support\Collab\Sampler\Scripts folder. Select this package, and click Open.
  7. Click Next.
  8. Click the This User option. Click the Browse button to find the Windows NT account identity you want the script engine to run under. As discussed earlier, this account should have Log On As A Service privileges. Once you have specified an account, click Next.
  9. Verify the Install Directory and click Finish.
  10. The Exchange Scripting Agent package should now be installed in MTS, as shown in Figure 12-22.

click to view at full size.

Figure 12-22 The Exchange Event Scripting Agent installed as an MTS component.

NOTE
If you are interested in learning more about the Event Service and the types of applications you can develop with this technology, you should look at the four sample scripts included on the Exchange Server 5.5 CD in the Server\Support\Collab\Sampler\Scripts folder.



Programming Microsoft Outlook and Microsoft Exchange
Programming Microsoft Outlook and Microsoft Exchange, Second Edition (DV-MPS Programming)
ISBN: 0735610193
EAN: 2147483647
Year: 1999
Pages: 101

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net