This is a completely updates version of MQ and is very preliminary. This release contains early access material which supports the JMS 2.0 specification development project.
See more details at http://mq.java.net/5.0.html

Build Requirements
------------------
To build this Message Queue source bundle, you will need:

1. Maven 3.0.3 (http://maven.apache.org/download.html)
2. JDK 1.6.0 Update 31 or a later JDK6. (http://www.oracle.com/technetwork/java/javase/downloads/index.html)


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

1. Set up your settings.xml file in <user.home>/.m2/settings.xml so that all Maven
artifacts are downloaded from Maven Central.

<settings>
<mirrors>
<mirror>
<id>maven-central</id>
<url>http://repo1.maven.org/maven2/</url>
<mirrorOf>*,!eclipselink.repository</mirrorOf>
</mirror>
</mirrors>

<!-- Set up proxies, if needed here (commented out for now)
Uncomment this section and add your proxy if you need to proxy to maven-central -->
<!--
<proxies>
<proxy>
<active>true</active>
<protocol>http</protocol>
<host>www-proxy.us.oracle.com</host>
<port>80</port>
</proxy>
</proxies>
-->
</settings>

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

3. Build the source and distribution.
cd mq5.0-community/
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".


Documentation
-------------
The latest documentation for Message Queue can be found on the GlassFish documentation page:
http://glassfish.java.net/docs/index.html