Archive for the Category: Raspberry Pi

MQ Request/Reply Scenario with Async Getter Thread

Ok. Continuing on with the previous blog posting here, the StackOverflow user says that s/he wants the getter component to be run in a separate thread. To me, the request does not really make a lot of sense. If the user wants to do a Get with CorrelId then they should be coding for synchronous […]

Also posted in HPE NonStop, IBM i (OS/400), IBM MQ, IBM MQ Appliance, Java, Linux, macOS (Mac OS X), Open Source, Programming, Unix, Windows Comments Off on MQ Request/Reply Scenario with Async Getter Thread

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, Programming, Unix, Windows Comments Off on Put 2 Messages with Unique CorrelId and Get 1 Message by CorrelId

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, Programming, 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, Programming, 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, Programming, 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), Programming, 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), Programming, Unix, Windows, z/OS Comments Off on Java 16 Released

IBM MQ Message Duplication

IBM Support has a technical note labeled Does MQ have a feature to generate automatically a duplicate message?. The options listed on that page are to use Pub/Sub or programs qload and dmpmqmsg. You can also use MQ Visual Edit and MQ Batch Toolkit to get messages from a queue and write the message to […]

Also posted in Capitalware, IBM i (OS/400), IBM MQ, Linux, MQ Message Replication, Unix, Windows Comments Off on IBM MQ Message Duplication

Local Transactions Using IBM MQ and the JMS API

Olja Rastic-Dulborough has written an article that introduces the user to the concepts of local transactions using IBM MQ and JMS. https://developer.ibm.com/components/ibm-mq/articles/an-introduction-to-local-transactions-using-mq-and-jms/ Regards, Roger Lacroix Capitalware Inc.

Also posted in Education, HPE NonStop, IBM i (OS/400), IBM MQ, IBM MQ Appliance, Java, JMS, Linux, macOS (Mac OS X), Programming, Unix, Windows, z/OS Comments Off on Local Transactions Using IBM MQ and the JMS API

Part 2: Customer Question Regarding Automation with MQ Visual Edit

So, continuing with the customer, after they successfully tested MQ Batch Toolkit on Windows with a scheduled Windows batch script, they had a new question: how can we be sure that the file.txt are send in the proper order ( chronological) from the 1 to last ( by time) So, here are the batch/scripts files […]

Also posted in Capitalware, IBM MQ, IBM MQ Appliance, Linux, macOS (Mac OS X), MQ Batch Toolkit, MQ Visual Edit, Programming, Windows Comments Off on Part 2: Customer Question Regarding Automation with MQ Visual Edit