Progress
ADM 2 Reference
SmartProducer, SmartConsumer
The SmartMessageProducer sends messages using some message-transport system. At present, the only transport system supported is SonicMQ.
On demand, SmartMessageProducer creates a message body of the appropriate kind, passes it back to the requesting object—such as a SmartB2BObject or SmartSender—to be filled in, and finally inserts the message into the outbound message-transport queue. If it receives a reply to a message, it accepts it and passes it upstream for processing.
The SmartConsumer handles inbound traffic from some message-transport system. It accepts incoming messages and passes them on for processing by some other object such as a SmartB2BObject or SmartReceiver. It also sends reply messages when required.
The class names of the objects are Producer and Consumer, respectively. They are Progress classes derived from the Messaging class.
The file %DLC%/src/
adm2/producer.p
is the super procedure for the class SmartProducer. The syntax for loading that file is:
The file %DLC%/src/
adm2/consumer.p
is the super procedure for the class SmartConsumer. The syntax for loading that file is:
Other files related to
producer.p
are:
The corresponding files for the Consumer class are:
Messaging Class
The file %DLC%/src/
adm2/messaging.p
is the super procedure for the class Messaging. The syntax for loading that file is:
Other files related to
messaging.p
are:
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |