Skip to content

Files

mq

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Sep 13, 2022
Nov 16, 2024
Nov 11, 2024
Oct 24, 2023
Nov 11, 2024
Feb 26, 2025
Jan 24, 2018
May 8, 2025
Feb 28, 2025
Apr 1, 2024
Dec 24, 2020
Apr 25, 2022
Nov 23, 2018
Nov 23, 2018
Aug 31, 2024
Build Requirements
------------------
To build this Message Queue source bundle, you will need:

1. Maven 3.6.3  (http://maven.apache.org/download.html)
2. JDK 21 or newer (e.g. https://www.oracle.com/java/technologies/javase-downloads.html)


Message Queue Build Instructions
--------------------------------

1. Set up your settings.xml file in <user.home>/.m2/settings.xml so that 
   you can proxy to Maven Central at https://repo1.maven.org/maven2/
   Build artifacts are downloaded from Maven Central.
   If you are not behind a firewall, you will not need to set up a proxy.

<settings>
  <!-- Example proxies setup. Use your proxy setting if you need to proxy to maven-central -->
  <proxies>
     <proxy>
      <active>true</active>
      <protocol>http</protocol>
        <host>proxy-host</host>
        <port>80</port>
     </proxy>
  </proxies>
</settings>

2. Unzip the source bundle and set JAVA_HOME
      unzip mq5.1.1-source.zip
      and set JAVA_HOME.

3. Build the source and distribution.
      cd mq5.1.1-source/
      mvn clean install

4. If you get a java OutOfMemory Error while running the mvn command, 
   set MAVEN_OPTS to "-Xmx512m -Xms256m -XX:MaxPermSize=512m".


Message Queue Build Output
--------------------------

 1. After the build, a runnable build image of Message Queue is at:
        $TOP/mq/dist/mq

 2. A zip bundle of that image is at:
        $TOP/mq/dist/bundles/mq<version>*.zip
  . A tar bundle of that image is at:
        $TOP/mq/dist/bundles/mq<version>*.tar


Running Message Queue
--------------------

 1. From this point, MQ_HOME is considered to be $TOP/mq/dist/mq

 2. To run the Message Queue broker:

    cd MQ_HOME/bin
    ./imqbrokerd -tty [-javahome "<javahome>"] (unix)
    .\imqbrokerd -tty [-javahome "<javahome>"] (windows)

 3. To run a Message Queue client:

    (In the mq/examples directory, run the HelloWorldMessage sample program
    to verify the build was successful.)

    cd MQ_HOME/mq/examples/helloworld/helloworldmessage

    set CLASSPATH to include
        $MQ_HOME/lib/jms.jar
        $MQ_HOME/lib/imq.jar
        $MQ_HOME/examples/helloworld/helloworldmessage

    java HelloWorldMessage

        Sending Message: Hello World
        Read Message: Hello World


Troubleshooting the Build
-------------------------

1. If executing mvn returns "java.lang.OutOfMemoryError: Java heap space",
   you should set MAVEN_OPTS to "-Xmx512m -Xms256m -XX:MaxPermSize=512m".

2. If you build on Windows, your distribution will only run on
   Windows.  If you build on Unix, your distribution will only run on
   Unix or in a shell emulator on Windows.


Documentation
-------------
The latest documentation for Message Queue can be found at
https://eclipse-ee4j.github.io/openmq/


Appendix: Message Queue Build Instructions for C-API Client Library
-------------------------------------------------------------------
1. Fill in necessary info for your platform in
   $TOP/src/buildant/default.properties

2. cd $TOP/main/packager-opensource
   ant buildcclient