This project contains Java samples demonstrating how to use the MQ Light Service for Bluemix to write cloud apps which can perform worker offload.
Check out the blog post at IBM Messaging for more info on this sample.
The sample can be used with the 'Message Hub' service. Pre-built binaries are included in this source repository for convenience and can be deployed immediately.
-
Create an instance of the service using either the Bluemix console or the Bluemix cf command line tool.
-
In the Message Hub service Dashboard, create a topic called "MQLight" with a single partition.
-
Edit the
manifest.yml
file in the root directory of the sample to reflect the name of the service created above.
services:
- <TheNameOfYourService>
...
services:
- <TheNameOfYourService>
- From the root directory of the sample use the Bluemix cf command line
tool to push the sample to Bluemix, as below:
$ cf push
For further information about Bluemix command line tooling, see IBM Bluemix Command Line Tooling
The following needs to be available:
- Java SDK v7.0 or later [with JAVA_HOME pointing to its install directory]
- Maven
From the samples root directory:
cd frontend
mvn package
cd ../backend
mvn package
cd ..