Archive for the Category: Programming

Put 2 Messages with Unique CorrelId and Get 1 Message by CorrelId

On StackOverflow, someone asked a question about putting 2 messages on a queue with unique correlation ids and then retrieve a message with a particular correlation id. Here is a fully functioning Java/MQ program that will put 2 messages on a queue with unique correlation ids and then retrieve a message with a particular correlation […]

Also posted in HPE NonStop, IBM i (OS/400), IBM MQ, IBM MQ Appliance, Java, Linux, macOS (Mac OS X), Open Source, Raspberry Pi, Unix, Windows Comments Off on Put 2 Messages with Unique CorrelId and Get 1 Message by CorrelId

Microsoft OpenJDK Builds

I had to rub my eyes and read the announcement twice!! 🙂 Microsoft announces the general availability of Microsoft Build of OpenJDK: https://devblogs.microsoft.com/java/announcing-general-availability-of-microsoft-build-of-openjdk/ Java at Microsoft spans from Azure to Minecraft, across SQL Server to Visual Studio Code, LinkedIn and beyond! We use more Java than one can imagine. The Microsoft Build of OpenJDK is […]

Also posted in Java, JMS, Linux, macOS (Mac OS X), Open Source, Windows Comments Off on Microsoft OpenJDK Builds

Java MQ Code to Clear a Queue of Messages

If you have done the following runmqsc command to clear a queue: 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 “Clear Queue” command, get the PCF response messages and output if the PCF […]

Also posted in HPE NonStop, IBM i (OS/400), IBM MQ, IBM MQ Appliance, Java, Linux, macOS (Mac OS X), Open Source, PCF, Raspberry Pi, Unix, Windows Comments Off on Java MQ Code to Clear a Queue of Messages

Updates to My ByteArray Class

Last year, I posted a blog item called Java’s Missing Byte Array Class regarding the missing ByteArray class in Java and I published my ByteArray class for all to use. I have fixed a bug in the getBytes method and added 2 new methods: public int convertToInt_BE() public void replaceAndResize(byte[] oldByteArray, byte[] newByteArray) I have […]

Also posted in HPE NonStop, IBM i (OS/400), Java, JMS, Linux, macOS (Mac OS X), Open Source, Raspberry Pi, Unix, Windows, z/OS Comments Off on Updates to My ByteArray Class

Programmatically Get IBM MQ Version for Both Client and Queue Manager

Recently, on both StackOverflow and mqseries.net, people have been asking about getting both the client and queue manager versions numbers for MQ. It is pretty easy to get both the client and queue manager from the command line. For the IBM MQ installation that is running the queue manager, you simply issue the following command: […]

Also posted in HPE NonStop, IBM i (OS/400), IBM MQ, IBM MQ Appliance, Java, JMS, Linux, macOS (Mac OS X), Open Source, PCF, Raspberry Pi, Unix, Windows Comments Off on Programmatically Get IBM MQ Version for Both Client and Queue Manager

All Java and JVM features since JDK 8 to 16

David Csakvari has a blog posting called: A categorized list of all Java and JVM features since JDK 8 to 16 If you ever wondered or needed to know what has changed between releases of Java, David Csakvari’s blog posting has an excellent list of changes. On the flip side, if you are a new […]

Also posted in HPE NonStop, IBM i (OS/400), Java, JMS, Linux, macOS (Mac OS X), Raspberry Pi, Unix, Windows, z/OS Comments Off on All Java and JVM features since JDK 8 to 16

Java 16 Released

Oracle has just released Java 16. https://blogs.oracle.com/java-platform-group/the-arrival-of-java-16 Java Platform, Standard Edition (Java SE) lets you develop and deploy Java applications on desktops and servers, as well as in today’s demanding embedded environments. Java offers the rich user interface, performance, versatility, portability, and security that today’s applicationsrequire. Regards, Roger Lacroix Capitalware Inc.

Also posted in IBM i (OS/400), Java, JMS, Linux, macOS (Mac OS X), Raspberry Pi, Unix, Windows, z/OS Comments Off on Java 16 Released

Enhancement to Exporting MQ Objects into Individual Files

Yesterday, I wrote a blog item regarding Exporting MQ Objects into Individual Files. I forgot that the dmpmqcfg program can output the MQ Object information as 1 line rather than spanning multiple lines. Hence, if we let dmpmqcfg do that work then we can simplify the Rexx script to only output the various MQ objects […]

Also posted in IBM MQ, IBM MQ Appliance, Linux, macOS (Mac OS X), Open Source, Rexx, Windows Comments Off on Enhancement to Exporting MQ Objects into Individual Files

Exporting MQ Objects into Individual Files

I posted this item on mqseries.net and I thought I should do a write up here. Back in the early 2000s, I was a consultant at a customer site and they wanted the nightly dumps of the MQ objects (not messages), 1 line per object and then check those files into a source code repository. […]

Also posted in IBM MQ, IBM MQ Appliance, Linux, macOS (Mac OS X), Open Source, Rexx, Windows Comments Off on Exporting MQ Objects into Individual Files

Interesting Blog Item: IBM Knowledge Center – LATEST!

Morag Hughson of MQGem has a new blog posting called IBM Knowledge Center – LATEST! regarding a new feature in the IBM Knowledge Center. Instead of providing a link with the MQ version number, you can swap the version number for the word “latest”. This is a cool feature for putting links in a blog […]

Also posted in HPE NonStop, IBM i (OS/400), IBM MQ, IBM MQ Appliance, Linux, macOS (Mac OS X), Security, Unix, Windows, z/OS Comments Off on Interesting Blog Item: IBM Knowledge Center – LATEST!