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:

SYNTAX

RUN start-super-proc("adm2/producer.p":U).

The file %DLC%/src/adm2/consumer.p is the super procedure for the class SmartConsumer. The syntax for loading that file is:

SYNTAX

RUN start-super-proc("adm2/consumer.p":U).

Other files related to producer.p are:

Class Files
Custom Files
Definition
producer.cld
Super
producercustom.p
Method
producer.i
Method
producercustom.i
Property
prodprop.i
Property
prodpropcustom.i
Prototype
prodprto.i
Prototype
prodprtocustom.i
Template
producer.w
dynproducer.w
Exclude
producerexclcustom.i
Instance
producerdefscustom.i

The corresponding files for the Consumer class are:

Class Files
Custom Files
Definition
consumer.cld
Super
consumercustom.p
Method
consumer.i
Method
consumercustom.i
Property
consprop.i
Property
conspropcustom.i
Prototype
consprto.i
Prototype
consprtocustom.i
Template
consumer.w
dynconsumer.w
Exclude
consumerexclcustom.i
Instance
consumerdefscustom.i

Messaging Class

The file %DLC%/src/adm2/messaging.p is the super procedure for the class Messaging. The syntax for loading that file is:

SYNTAX
RUN start-super-proc("adm2/messaging.p":U). 

Other files related to messaging.p are:

Class Files
Custom Files
Definition
messaging.cld
Super
messagingcustom.p
Method
messaging.i
Method
messagingcustom.i
Property
messprop.i
Property
messpropcustom.i
Prototype
messprto.i
Prototype
messprtocustom.i
Template
Exclude
messagingexclcustom.i
Instance
messagingdefscustom.i


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095