 Java APIs
StormMQ's Java APIs comes in two pieces. One which wraps the REST APIs in several abstractions, and one which adds some convenience methods if you choose to use the RabbitMQ client API (which the above downloads bundle)
Pre-Requisites
Before you use our Java API, you'll need:-
- A recent Java 6 JDK.
- Our Java client - you can use either
- A text editor, or Java IDE, such as IntelliJ or Eclipse.
Using the Java API
Inside your favourite IDE, or command line if you're doing it yourself, you'll need to add some JARs to your classpath. All Jars are found in subfolders under usr/lib/stormmq-client in the download.
To use the REST API wrappers
Add the following JARs in subfolder url-signer:-
url-signer.complete.jar
- Optionally, if working with IntelliJ and our source code,
annotations.jar in subfolder
To use the RabbitMQ client wrappers
Add the following JARs in subfolder rabbitmq-client-wrapper:-
rabbitmq-client-wrapper.complete.jar
rabbitmq-client.jar (used by the JAR above)
commons-cli-1.1.jar (used by rabbitmq-client.jar)
commons-io-1.2.jar (used by rabbitmq-client.jar)
- Optionally, if working with IntelliJ and our source code,
annotations.jar in subfolder
Java sources
Java sources are found in subfolders under usr/src/stormmq-client in the download. Source code is open source and licenced under the Mozilla Public License (sic) 1.1.
Other JAR files
We've included several other JAR files which end in -application.veneer.jar. Feel free to use them, but they only act as entry points for the client command line tools.
The Reference |