The Spring Integration MQTT allows you to receive/send MQTT messages to a MQTT brokers.
- Outbound Channel Adapter
- Outbound Gateway
- Inbound Channel Adapter
- Inbound Gateway
You'll need to install the Paho client library jar in your local maven repository.
mkdir -p ~/.m2/repository #optional if you already have Maven installed
mvn install:install-file -Dfile=build/dist/org.eclipse.paho.client.mqttv3.jar -DgroupId=org.eclipse.paho.client -DartifactId=mqtt -Dversion=3.1.0 -Dpackaging=jar
You'll need a broker to connect with, or you can install your own.
There are 2 options:
SMPPSim - http://www.seleniumsoftware.com/regform.php?itemdesc=SMPPSim.tar.gz
Simply download it, cd into the folder and execute ./startsmppsim.(sh|bat)
. Make sure the script is executable. The configuration for this simulator is in conf/smppsim.props
Another option is smsssim and smsctest from http://opensmpp.logica.com/CommonPart/Download/download2.html
Alternatively, the JSMPP project itself has an SMPP simulator as well. It is also possible to use a full-blow SMPP servers like Kanell.
If you encounter out of memory errors during the build, increase available heap and permgen for Gradle:
GRADLE_OPTS='-XX:MaxPermSize=1024m -Xmx1024m'
To build and install jars into your local Maven cache:
./gradlew install
To build api Javadoc (results will be in build/api
):
./gradlew api
To build reference documentation (results will be in build/reference
):
./gradlew reference
To build complete distribution including -dist
, -docs
, and -schema
zip files (results will be in build/distributions
)
./gradlew dist
Gradle projects can be directly imported into STS
To generate Eclipse metadata (.classpath and .project files), do the following:
./gradlew eclipse
Once complete, you may then import the projects into Eclipse as usual:
File -> Import -> Existing projects into workspace
Browse to the 'spring-integration' root directory. All projects should import free of errors.
To generate IDEA metadata (.iml and .ipr files), do the following:
./gradlew idea
For more information, please visit the Spring Integration website at: http://www.springsource.org/spring-integration
- figure out a clean way to furnish our own Executor implementation