How to Setup a Websphere MQ with C# .NET: GUI to Put/Get to Local & Remote Queues
Introduction
This very basic article will show you how to write simple MQ programs in C#.NET as well as how to configure the background IBM Websphere Queue Manager.
Background
This example is more directed towards how to setup the Websphere MQ for communication to/from Local & Remote Queue Managers and how to create a C#.NET GUI. I've included a setup guide for the Queue Manager within the zipped source.
The Websphere DLL is also included within the source code.
Using the code
Create a Windows Application copying the code found in Form.cs. Create the form as shown in the screenshot. The only label not visible is one called lblConnect to hold the results of hitting the Connect button.
The MQTest.cs can be taken and used anywhere communication with a Queue Manager is required.
Comments