Introducing the WebSphere MQ Java PCF API
John.Kelly 10000004H6 Visits (1525)
A quite neat facility in the Java PCF API (which was introduced in WebSphere MQ V7) is the lookup() method. Consider the following piece of code:
The value of platformType maps to those defined by constants prefixed with "MQPL_", for example:
With the lookup method we
can now easily convert that number into a string "WINDOWS_NT".
So, if platformType is 11 then shortPlatform will be "WINDOWS_NT".