Progress
AppBuilder
Developer’s Guide


Creating and Completing a SmartSender Master

To create a new SmartSender master, follow these steps:

  1. Click the SmartSender tool icon on AppBuilder’s Palette:
  2. When the Choose dialog box opens, click the New button. After a moment, a new SmartSender object appears:
  3. Open the Section Editor and add handler code to complete the sendHandler and receiveReplyHandler procedures. Use calls from the 4GL–JMS API.
  4. The sendHander procedure deals with your outbound messages. Use it to set properties and create message bodies. See the "Example of sendHandler Code" section.

    The receiveReplyHandler procedure deals with incoming replies. Use it to extract properties and evaluate message bodies. See the "Example of receiveReplyHandler Code" section.

  5. Save the completed master using a descriptive filename. Note that SmartSender filenames conventionally begin with sms.

Creating a SmartReceiver master involves comparable steps, though the names of the handler routines are receiveHandler and sendReplyHandler, respectively. See the "Example of receiveHandler Code" and "Example of sendReplyHandler Code" sections.


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