In VisualAge Smalltalk Server, the implementation of MQSeries is the same regardless of whether the target environment is CICS/ESA, IMS/ESA, OS/390, CICS, or OS/400 for the workstation, or other native environments. That is, server programmers use the following classes, extended from VisualAge, for message queueing:
The sample code below describes how to connect to a queue manager and put or get messages from the queue. There are other tasks you can perform with MQSeries, such as inquiring about a queue's specifications and committing and backing out (equivalent to a syncpoint).
Note that, even though this chapter focuses on writing Smalltalk code for MQSeries applications deployed on OS/390, you can use MQSeries nonvisual parts in server applications deployed on OS/390 and on other server environments.