Files
spring-integration-samples/basic/mqtt
Spring Operator aa8dff4cfd URL Cleanup
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).

# Fixed URLs

## Fixed Success
These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended.

* http://maven.apache.org/xsd/maven-4.0.0.xsd with 67 occurrences migrated to:
  https://maven.apache.org/xsd/maven-4.0.0.xsd ([https](https://maven.apache.org/xsd/maven-4.0.0.xsd) result 200).
* http://www.apache.org/licenses/LICENSE-2.0.txt with 68 occurrences migrated to:
  https://www.apache.org/licenses/LICENSE-2.0.txt ([https](https://www.apache.org/licenses/LICENSE-2.0.txt) result 200).
* http://projects.spring.io/spring-integration with 68 occurrences migrated to:
  https://projects.spring.io/spring-integration ([https](https://projects.spring.io/spring-integration) result 301).
* http://repo.spring.io/libs-milestone with 1 occurrences migrated to:
  https://repo.spring.io/libs-milestone ([https](https://repo.spring.io/libs-milestone) result 302).
* http://repo.spring.io/libs-snapshot with 2 occurrences migrated to:
  https://repo.spring.io/libs-snapshot ([https](https://repo.spring.io/libs-snapshot) result 302).
* http://repo.spring.io/libs-staging-local with 1 occurrences migrated to:
  https://repo.spring.io/libs-staging-local ([https](https://repo.spring.io/libs-staging-local) result 302).

# Ignored
These URLs were intentionally ignored.

* http://maven.apache.org/POM/4.0.0 with 134 occurrences
* http://www.w3.org/2001/XMLSchema-instance with 67 occurrences
2019-03-16 12:54:41 -04:00
..
2017-09-01 16:14:34 -04:00
2019-03-16 12:54:41 -04:00
2016-03-07 10:10:29 -05:00

Spring Integration - MQTT Sample

Overview

This sample demonstrates basic functionality of the Spring Integration MQTT Adapters.

It assumes a broker is running on localhost on port 1883.

Once the application is started, you enter some text on the command prompt and a message containing that entered text is dispatched to the MQTT topic. In return that message is retrieved by Spring Integration and then logged.

How to Run the Sample

If you imported the example into your IDE, you can just run class org.springframework.integration.samples.mqtt.Application. For example in SpringSource Tool Suite (STS) do:

  • Right-click on SampleSimple class --> Run As --> Spring Boot App

(or run from the boot console).

Alternatively, you can start the sample from the command line:

  • ./gradlew :mqtt:run

Enter some data (e.g. foo) on the console; you will see foo sent to MQTT, received from MQTT

Ctrl-C to terminate.