IBM Books [Return to Library] [Contents] [Previous Topic] [Bottom of Topic] [Next Topic] [Help]

User's Guide


Writing Web-aware applications for the MQSeries Internet Gateway

The MQSeries Internet Gateway accepts an HTML file from a Web browser and extracts the MQ specific information. This information is then repackaged into a form that can be interpreted by specially written MQ applications. The MQ application sends the reply back to the gateway in a special format which the gateway repackages into an HTML file and passes it to the browser for display.

The MQ applications that can interact with the MQSeries Internet Gateway are described as being 'Web-aware'. Web-aware MQ applications do not use any new or specific MQ calls, but they need to be written in a particular style. Data is received from the gateway in a particular format, and the return message to the gateway has a specific format. Both these formats are included in the sample programs which can be found in the '\samples' subdirectory of your installation.

dmqsamp1
shows how to code a simple two step conversation. Browser form data is received, formatted, and sent back to the browser in a table.
dmqsamp2
demonstrates multiple users having multiple state conversations with MQ through the MQSeries Internet Gateway. The session is provided as a series of forms, and all the data that is entered on the browser is kept in a session control block.
You should be aware that this sample does not cater for all error conditions. In particular, it does not clean up the held session information if you close a browser without using the 'exit' button to terminate a session. These conditions would need to be handled in any user written multi-session applications applications

[Return to Library] [Contents] [Previous Topic] [Top of Topic] [Next Topic] [Help]


[ Home | Order | Search | Contact IBM | Legal ]
(C) IBM Corporation 1997. All Rights Reserved