All,
Is there a WebSphere MQ .NET API I can download ? I am basically trying to write a C# app that listens for messages in an MQ queue.
Thanks,
Marios
All,
Is there a WebSphere MQ .NET API I can download ? I am basically trying to write a C# app that listens for messages in an MQ queue.
Thanks,
Marios
MQ, since v5.3 fixpack 8 on Windows, includes amqmdnet.dll, a .NET assembly that provides managed-code programming model for MQSeries. It's supported by IBM.
IBM Calls it the "MQ Classes for .NET"
If you have MQ, you probably have this assembly.
C:\Program Files\IBM\WebSphere MQ\bin\amqmdnet.dll
WMQ v6 goes End-of-Life as of Sept 2011. Do yourself a favor and start with the v7 client http://bit.ly/bXM0q3 instead of the v6 client. Preferably, you want the QMgr to be at v7 as well since the .Net functionality has been greatly improved in the latest version. That said, the v7 client will work with a v6 QMgr, you just don't get all the new v7 functionality. However, it does save you from having to redeploy the client in 18 months when v6 becomes unsupported.
After you install, look in the install dir/tools/dotnet/samples/cs directory for some sample code. Here are some links to the docs to help you get started:
IBM - WebSphere MQ Help - http://bit.ly/aIerjJ (Look for the Using .Net manual)
IBM - WebSphere MQ - SupportPacs by Product http://bit.ly/bdSUfd
In MQ 7 they even added a WCF transport channel for WMQ. Basicly this means that you also don't have to write the code that listens for messages, you can just use the WCF plumbing.
WCF samples are also in the samples dir.