Archive for the Category: Programming

Pub/Sub Java/JMS MQ MQGet API Issue

Not surprisingly, when I tested: Subscribing to a topic with JMS Subscribing to a topic with Java (non-JMS) They both showed that the internal JMQI routine was starting with a MQGet buffer size of 4KB and auto-adjusting the size of the buffer as needed (all behind the scenes). Hence, when I used MQ Auditor, I […]

Also posted in IBM i (OS/400), IBM MQ, Java, JMS, Linux, macOS (Mac OS X), Unix, Windows, z/OS Comments Off on Pub/Sub Java/JMS MQ MQGet API Issue

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, Java, JMS, Linux, macOS (Mac OS X), 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, Java, Linux, macOS (Mac OS X), 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, Java, JMS, Linux, macOS (Mac OS X), 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, Java, JMS, Linux, macOS (Mac OS X), Unix, Windows, z/OS Comments Off on MQ JMS Double Get API Calls

SQLite v3.29.0 Released

D. Richard Hipp has just released SQLite v3.29.0. http://www.sqlite.org/news.html SQLite is a software library that implements a self-contained, serverless, zero-configuration, transactional SQL database engine. SQLite is the most widely deployed SQL database engine in the world. The source code for SQLite is in the public domain. Regards, Roger Lacroix Capitalware Inc.

Also posted in C, Database, IBM i (OS/400), Linux, macOS (Mac OS X), Open Source, Unix, Windows, z/OS Comments Off on SQLite v3.29.0 Released

C# .NET MQ Code to Subscribe to a Topic

The other day I answered a question on StackOverflow about subscribing to a topic using C# .NET code. I figured I should also post the code here for everyone to read & use. You can download the source code from here. Regards, Roger Lacroix Capitalware Inc.

Also posted in .NET, C#, IBM MQ, Linux, Open Source, Windows Comments Off on C# .NET MQ Code to Subscribe to a Topic

New Raspberry Pi 4 Model B Released

Raspberry Pi Foundation has just released a new Raspberry Pi 4 Model B. https://www.raspberrypi.org/blog/raspberry-pi-4-on-sale-now-from-35/ Everything is bigger, faster & better. Specifications: A 1.5GHz quad-core 64-bit ARM Cortex-A72 CPU (~3× performance) 1GB, 2GB, or 4GB of LPDDR4 SDRAM Full-throughput Gigabit Ethernet Dual-band 802.11ac wireless networking Bluetooth 5.0 Two USB 3.0 and two USB 2.0 ports Dual […]

Also posted in Education, Linux, Open Source, Operating Systems, Raspberry Pi Comments Off on New Raspberry Pi 4 Model B Released

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, Java, Linux, macOS (Mac OS X), 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, Java, Linux, macOS (Mac OS X), Unix, Windows 5 Comments