Programming Microsoft Outlook and Microsoft Exchange, Second Edition (DV-MPS Programming)

[Previous] [Next]

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. For those of you running Windows 2000, MTS has been enhanced and its capabilities have been integrated directly into COM+. Therefore, wherever you see MTS referenced here, it also refers to COM+. We'll learn more about COM+ applications in Chapter 18 when we talk about the new event capabilities of Exchange 2000.

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

  1. If you are running Windows NT 4.0, make sure you have MTS installed on the server where you are running the Event Service. (If you are running Windows 2000 Server, you will install MTS packages into COM+ instead.)
  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.

The Exchange Scripting Agent package should now be installed in MTS, as shown in Figure 13-22.

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.

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

Категории