Archive for the Category: HPE NonStop

Java Method to Output a Byte Array in HEX Dump Format

On StackOverflow, I posted code to output a byte array in a HEX dump format. I thought I should post the code here as a complete working sample. You can download the source code from here. You can copy the 2 methods (dumpBuffer & formatHex) to your general purpose toolkit and use them in any […]

Also posted in IBM i (OS/400), Java, JMS, Linux, macOS (Mac OS X), Open Source, Programming, Raspberry Pi, Unix, Windows 2 Comments

Simple Monitoring of the Current Queue Depth

On StackOverflow, someone asked a question about determining when a queue’s current depth is the same as maximum depth. They were trying to do it from a script. While this is probably possible (I’m not a sed and/or awk guy), it seemed to me that they are trying to squeeze a fully blown up balloon […]

Also posted in IBM i (OS/400), IBM MQ, IBM MQ Appliance, Java, Linux, macOS (Mac OS X), Open Source, PCF, Programming, Raspberry Pi, Unix, Windows, z/OS Comments Off on Simple Monitoring of the Current Queue Depth

IBM MQ, Java and MQ MI and/or MQ HA

Sometimes you come across things that make you just scratch your head and say who the hell wrote this @#$% code. I’m not trying to say that I’m the world’s greatest programmer but some of the shit that the MQ/Java team writes just makes my head spin. They need to share what they’re smoking! IBM’s […]

Also posted in IBM i (OS/400), IBM MQ, IBM MQ Appliance, Java, Linux, macOS (Mac OS X), Programming, Raspberry Pi, Unix, Windows, z/OS Comments Off on IBM MQ, Java and MQ MI and/or MQ HA

memmem() Function for a C Program

Last week, I needed a function for a C program that would search a string not null terminated for a string not null terminated. Hence, I could not use strstr() function because it requires the strings to be null terminated. So, I checked my trusty C Runtime Library Reference and found nothing that matched. Now […]

Also posted in C, IBM i (OS/400), Linux, macOS (Mac OS X), Open Source, Programming, Unix, Windows, z/OS Comments Off on memmem() Function for a C Program

Java’s Missing Byte Array Class

After 25 years, it is still surprising that Java doesn’t have a proper byte array class. There can be many reasons that the data a Java program needs to work with is in a byte array. It could be the contents of a file or MQTT message or IBM MQ message, etc. Since there is […]

Also posted in IBM i (OS/400), Java, JMS, Linux, macOS (Mac OS X), Open Source, Programming, Raspberry Pi, Unix, Windows, z/OS 3 Comments

Inhibit/Allow the Get & Put Actions of a Queue

On StackOverflow, someone asked a question about inhibiting get actions against a queue. Here is a simple Java/MQ program that will set inhibit or allow for the GET and PUT attributes of a queue. You can download the source code from here. Regards, Roger Lacroix Capitalware Inc.

Also posted in IBM i (OS/400), IBM MQ, IBM MQ Appliance, Java, Linux, macOS (Mac OS X), Open Source, Programming, Raspberry Pi, Unix, Windows, z/OS Comments Off on Inhibit/Allow the Get & Put Actions of a Queue

Request & Reply JMS/MQRFH2 Messaging Scenario

Sometimes people over think a problem and write a complicated solution when really the solution is no different than any other Request/Reply scenario (use case). On StackOverflow, someone asked a question about sending a reply JMS/MQRFH2 message using the RFH2 header and folder values from the original request message. The code will copy the RFH2 […]

Also posted in IBM i (OS/400), IBM MQ, IBM MQ Appliance, Java, JMS, Linux, macOS (Mac OS X), Open Source, Programming, Raspberry Pi, Unix, Windows, z/OS Comments Off on Request & Reply JMS/MQRFH2 Messaging Scenario

IBM announces WebSphere MQ V5.3.1 Fix Pack 16 for HPE NonStop

IBM has just released Fix Pack 5.3.1.16 for WebSphere MQ for HPE NonStop: https://www.ibm.com/support/docview.wss?uid=swg1IT29752 Regards, Roger Lacroix Capitalware Inc.

Also posted in Fix Packs for MQ, IBM MQ Comments Off on IBM announces WebSphere MQ V5.3.1 Fix Pack 16 for HPE NonStop

MQ Internals Explained (a little bit)

IBM likes to market IBM MQ (aka WebSphere MQ, MQSeries) as a simple and complete solution for business’s messaging needs. Going with the KISS approach is wise (very wise in some cases). IBM talks about the 2 different messaging models that IBM MQ supports: Point-to-Point (P2P) and Publish/Subscribe (Pub/Sub). IBM will: show you how to […]

Also posted in .NET, Assembler, C, C#, C++, IBM i (OS/400), IBM MQ, Java, JMS, Linux, macOS (Mac OS X), MQ Auditor, MQ Message Encryption, Programming, Unix, Windows, z/OS 2 Comments

AMQ7234 Question from the MQ ListServer

Doug posted a question on MQ List Server regarding the MQ error message AMQ7234. His question was: My shop has always struggled with large number of messages just being left on the queue. Sometimes to be processed later, sometimes because the application does not know what to do with them, but they cannot be removed. […]

Also posted in C, IBM i (OS/400), IBM MQ, Linux, Programming, Unix, z/OS Comments Off on AMQ7234 Question from the MQ ListServer