Progress
Programming
Handbook
Programming Example
The following example consists of four procedure files: a driver, a publisher, and two subscribers. The driver,
p-nedrvr.p
, runs the publisher and the two subscribers persistently, and then subscribes to the event NewCustomer on behalf of the second subscriber:
The publisher,
p-nepub.p
, publishes the event NewCustomer:
The first subscriber,
p-nesub1.p
, subscribes to the event NewCustomer:
The second subscriber,
p-nesub2.p
, already subscribed to the event NewCustomer, cancels all subscriptions:
To start the example, run the driver,
p-nedrvr.p
.
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |