Progress
AppBuilder
Developer’s Guide
Creating and Completing a SmartSender Master
To create a new SmartSender master, follow these steps:
- Click the SmartSender tool icon on AppBuilder’s Palette:
![]()
- When the Choose dialog box opens, click the New button. After a moment, a new SmartSender object appears:
![]()
- Open the Section Editor and add handler code to complete the
sendHandler
andreceiveReplyHandler
procedures. Use calls from the 4GL–JMS API.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.- 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
andsendReplyHandler
, 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 |