Registering EventSink for Persistent Subscription

After you register an event class in the COM+ catalog, you can add subscribers to the event class and subscriptions to the subscribers. For persistent event subscription:

  • Add a new application for EventSink.

  • Install the type library component for EventSink.

  • Add a subscription.

    Note: To add EventSink, follow the steps in the task named To add a new application. The name of the application is EventSink, or a name that you prefer.See Adding a New Application

To install the EventSink component:

On Component Services, expand the folder for the new application (for example, EventSink).

  1. Select Components.

  2. Right-click Components, select New, and then select Component.

    The COM Component Install Wizard appears. These steps are for the wizard.

  3. On Import or Install a Component, select Install new component(s).

  4. On Select Files to Install, browse to the EventSink.dll that you previously developed.

  5. Select EventSink.dll, and then click Open.

    Install new component appears with information in these fields:

    • Files to install

    • Event classes found

  6. Click Next, and then click Finish.

EventSink.dll is successfully added to Component Services.

To add a subscription:

In COM+ Applications, expand these folders:

JDECOMConnectorEvents > Components > EventSink.OneWorldTransientEventSink

  1. Select Subscription.

  2. Right-click Subscription, select New, and then select Subscription.

    The COM New Subscription Wizard appears. These steps apply to the wizard.

  3. On Select Subscription Method(s), chose IOWEvent, and then click Next.

  4. If appropriate, select the Use all interfaces for this component option.

  5. On Select Event Class, select the event class (for example, JDEdwards.EventClass.OneWorldEventClass.1), and then click Next.

    If multiple EventSink classes have implemented the event interface, then use all event classes that implement that specified interface. If only one EventSink class has implemented the event interface, then just select that specific class.

  6. On Subscription Options, enter the name of the subscription (for example, MySubscription).

  7. In the Options area, select the Enable this subscription immediately option, and then click Next.

  8. Click Finish.

    A new subscription, with the name you entered in Step 6, is added to COM+ Services. You must define the name of the event for the subscription.

  9. Right-click the subscription (for example, MySubscription), and then select Properties.

  10. On MySubscription Properties, click the Options tab.

  11. Chose the Enabled option.

  12. In the Filter criteria field, enter the name of the event for which you want a subscription.

    Enter all of the events for which you want to subscribe. The filter criteria string supports relational operations (=, ==, !, !=, ~, ~=, <>), nested parentheses, and logical words (AND, OR, and NOT); for example:

    EventName=='RTSOOUT' OR EventName==RTPOOUT'

  13. Click OK.