Skip to content

joshlong-attic/spring-integration-mqtt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring Integration MQTT Adapter

The Spring Integration MQTT allows you to receive/send MQTT messages to a MQTT brokers.

Components

  • Outbound Channel Adapter
  • Outbound Gateway
  • Inbound Channel Adapter
  • Inbound Gateway

Requirements

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.

Building

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

Using SpringSource Tool Suite

Gradle projects can be directly imported into STS

Using PLain Eclipse

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.

Using IntelliJ IDEA

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

TODO

  • figure out a clean way to furnish our own Executor implementation

Resources

About

Spring Integration adapter supporting MQTT

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published