Creating a COM+ Event Sink Application

Creating a COM+ Event Sink Application

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

To provide a security context so that your event sink can run out-of-process on Microsoft® Exchange Server 2003, you must wrap your event sink as a COM+ component application. This is done before Registering an Event Sink.

To create a COM+ application for an event sink (Microsoft Windows® 2000 Server)

  1. Click Start, point to Programs, then Administrative Tools, and click Component Services.
  2. In Component Services, select COM+ Applications under Console Root\Component Services\My Computer.
  3. Right-click COM+ Applications, point to New, and click Application.
  4. Click Next, then click Create an empty application.
  5. Name the application, verify that Server application is selected, and then click Next.
  6. On the Set Application Identity page, click This User. Browse for an appropriate account, one that has the necessary permissions to perform the tasks in the event sink, and enter the password for this account. It is recommended that you not select the Interactive User option because the Exchange server will not normally have a user logged on interactively. Click Next and then Finish.
  7. Open the new application, and right-click Components in the tree view.
  8. Click New and then click Component.
  9. Click Import component(s) that are already registered.
  10. When the list displays, select your component, such as MyComponent.SyncEvents.1.
  11. Click Finish, and click OK to close Component Services.

To create a COM+ application for an event sink (Microsoft Windows Server™ 2003)

  1. Click Start, point to All Programs, then Administrative Tools, and click Component Services.
  2. In Component Services, select COM+ Applications under Console Root\Component Services\Computers\My Computer.
  3. Right-click COM+ Applications, point to New, and click Application.
  4. Click Next, then click Create an empty application.
  5. Name the application, verify that Server application is selected, and then click Next.
  6. On the Set Application Identity page, click This User. Browse for an appropriate account, one that has the necessary permissions to perform the tasks in the event sink, and enter the password for this account. It is recommended that you not select the Interactive User option because the Exchange server will not normally have a user logged on interactively. Click Next, Next, and then Finish.
  7. Open the new application, and right-click Components in the tree view.
  8. Click New and then click Component.
  9. Click Next and then Import component(s) that are already registered.
  10. When the list displays, select your component, such as MyComponent.SyncEvents.1.
  11. Click Next, click Finish, and click OK to close Component Services.
  12. Right-click on the application and select Properties.
  13. Select the Security tab. Uncheck the Enforce access check for this application box and select the Perform access checks only at the process level. radio button.
  14. Click OK.

Send us your feedback about the Microsoft Exchange Server 2003 SDK.

Build: June 2007 (2007.618.1)

© 2003-2006 Microsoft Corporation. All rights reserved. Terms of use.