Try OpenEdge Now
skip to main content
Messaging and ESB
Programming for the OpenEdge Adapter for SonicMQ with the ABL - JMS API : Pub/Sub messaging example : Creating a Message Subscriber
 

Creating a Message Subscriber

You create a message subscriber to receive the message from the topic newtopic. The subscriber handles the message using the internal procedure myintproc, as shown in the following example.

Creating a Message Subscriber

/* Receives requests from the newTopic */
RUN createMessageConsumer IN hPubSubSession
  (THIS-PROCEDURE, "myintproc", OUTPUT hConsumer).
Note: Topics can be configured at run time.