Problem:
Example of Net Express working with MQSeries
Resolution:
1). IBM MQSeries client or server Developers Toolkit must be installed on the machine that will build the application. This creates a "tools" directory below the directory that you installed IBM MQSeries, with a sub directory called "lib". The "lib" directory will contain the link file needed for execution on a server machine; mqmcb32.lib or for a client machine; mqiccb32.lib.
2). For simplicity I have added the directives in the beginning of the program as $SET statements. The LITLINK directive is used to resolve the literal at like time as public symbols.
3). The linking of an EXE will require the correct link library for IBM MQSeries installed on the machine that will run the program.
IBM MQSeries Client machine requires "mqiccb32.lib" added to the Advance Category of the Build Settings Link tab.
IBM MQSeries Server machine requires "mqmcb32.lib" added to the Advanced Category of the Build Setting Link tab.
If the LIB environment variable contains the location of the MQ\\TOOLS\\LIB you only need to enter the name and extension in the "Link with these LIBs" block, otherwise you will need to fully qualify the location.
NOTE: Special handling is required for any program that uses "LITLINK" to call a cobol program. Any cobol dll that is called must be built with the "Advanced Link option" "Keep temporary linker files"; this will create the LIB file that must be linked into the EXE to resolve the call to the DLL.
4). This test will write to one MQ Queue and then read the entries back from the queue. First you need to find a queue that you can test with, one that you may write messages and delete all messages from. The test queue described in the IBM MQSeries getting started book is "orange.queue". You can pass the queue name to the program for animation by using the command line options under Animate\\Settings.
Animate pull down Menu
Settings
Command line parameter box located in the General block
==========================================================
Keywords: Example, sample, demo, demonstration, mixed language, mqexedll.zip
demo.ex
demo.ne