Archive for the Category: Java

How to Improve Your Java/JMS MQ Tuning Cred.

Here’s my version of a cheap Info-Commercial: Do you want to impress your colleagues? Do you want to impress your boss, so that you can receive a big fat bonus? Call today and we’ll show you how to impress the MQAdmins in your company! And if you call within the next 5 minutes, we’ll even […]

Also posted in IBM i (OS/400), IBM MQ, JMS, Linux, macOS (Mac OS X), Programming, Unix, Windows, z/OS Comments Off on How to Improve Your Java/JMS MQ Tuning Cred.

Tuning Java Programs for Optimum MQ Get API Calls Performance

You should really read this blog posting first. The results of some of the test scenarios below, simply do not make any sense. I would like to think there is some sort of logic behind it but it is probably lack of testing by IBM that introduced some bugs in the code or should I […]

Also posted in IBM i (OS/400), IBM MQ, Linux, macOS (Mac OS X), Programming, Unix, Windows, z/OS Comments Off on Tuning Java Programs for Optimum MQ Get API Calls Performance

Tuning JMS Programs for Optimum MQ Get API Calls Performance

On Wednesday, I decided to do some testing of some simple (1) MQ for JMS, (2) MQ for Java and (3) procedure language (i.e. amqsbcg) programs to show that using the JVM environment variable of com.ibm.mq.jmqi.defaultMaxMsgSize with an appropriate size could make a JMS application 10 to 15% faster because there would not be any […]

Also posted in IBM i (OS/400), IBM MQ, JMS, Linux, macOS (Mac OS X), Programming, Unix, Windows, z/OS Comments Off on Tuning JMS Programs for Optimum MQ Get API Calls Performance

MQ JMS Double Get API Calls

Tuning applications is always a good thing. 🙂 Colin Paice has reminded me of the MQ JMS default value for an MQGET buffer size is 4KB in his blog posting here. IBM’s default value of 4KB is far too low to be useful. Having such a low value causes excessive number of MQ JMS Get […]

Also posted in IBM i (OS/400), IBM MQ, JMS, Linux, macOS (Mac OS X), Programming, Unix, Windows, z/OS Comments Off on MQ JMS Double Get API Calls

Updates to MessageSelector Class

In the blog posting, Java MQ Code to Retrieve Messages from a Queue Based on a Filter, I posted code for a Java MessageSelector class. I have updated the setFilter method to catch any invalid values that may be passed to the MessageSelector class on the setFilter call. You can download the source code for […]

Also posted in IBM i (OS/400), IBM MQ, Linux, macOS (Mac OS X), Programming, Unix, Windows Comments Off on Updates to MessageSelector Class

Java MQ Code to Retrieve Messages from a Queue Based on a Filter

There is a misconception regarding MQ/JMS message based filtering. Some people think that the IBM MQ queue manager does something special for JMS applications that is not done for plain Java or C/C++/C#/COBOL applications. It is just NOT true. Note: For C/C++/C#/COBOL applications, they can use the SelectionString from MQOD structure to perform message selection. […]

Also posted in IBM i (OS/400), IBM MQ, Linux, macOS (Mac OS X), Programming, Unix, Windows 5 Comments

RFE – IBM MQ support for AdoptOpenJDK

Please review and vote for this RFE if you think it’s a good idea. The link below will take you directly there. Headline: Add support for AdoptOpenJDK in IBM MQ URL to review the RFE and Vote for it if you like: http://www.ibm.com/developerworks/rfe/execute?use_case=viewRfe&CR_ID=133991 Description: Currently, IBM MQ supports 2 JDKs/JREs: IBM and Oracle. It would […]

Also posted in IBM MQ, JMS, Linux, Programming, Unix, Windows Comments Off on RFE – IBM MQ support for AdoptOpenJDK

IBM MQ and OpenJDKs

On Monday, Peter Potkay asked a simple question on the MQ List Server: Does IBM support any version of OpenJDK, from any vendor, for use with IBM MQ Clients, specifically the Resource Adapter? Tim McCormick of IBM responded with: The full list of supported JREs are listed in the MQ system requirements here: https://www.ibm.com/support/docview.wss?uid=swg27006467 Specific […]

Also posted in IBM MQ, Linux, macOS (Mac OS X), Programming, Unix, Windows 1 Comment

Java MQ Code to List All Local Queues Filtering by Current Depth

If you have done the following runmqsc command to display all local queues filtering by current queue depth of a queue manager: And you wanted to do the same thing via a program, here is a fully functioning Java MQ example that will connect to a remote queue manager, issue a PCF “Inquire Queue” command […]

Also posted in Capitalware, HPE NonStop, IBM i (OS/400), IBM MQ, Linux, macOS (Mac OS X), Open Source, PCF, Programming, Unix, Windows Comments Off on Java MQ Code to List All Local Queues Filtering by Current Depth

Excelsior Jet and macOS Mojave

Well, here’s a little oddity that Excelsior Jet users should know about. On Friday, I decided to upgrade my MacBook Pro from High Sierra (v10.13) to Mojave (v10.14). Everything went smoothly. I checked the version level and it said I was running v10.14.2. Note: I have Excelsior Jet 15.3 Professional installed on my MacBook Pro. […]

Also posted in macOS (Mac OS X), Programming Comments Off on Excelsior Jet and macOS Mojave