Files
spring-integration-samples/basic/helloworld
Spring Operator 4f48dce420 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 fixed successfully.

* http://www.apache.org/licenses/LICENSE-2.0.txt 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 migrated to:
  https://projects.spring.io/spring-integration ([https](https://projects.spring.io/spring-integration) result 301).
* http://repo.spring.io/libs-milestone migrated to:
  https://repo.spring.io/libs-milestone ([https](https://repo.spring.io/libs-milestone) result 302).
* http://repo.spring.io/libs-snapshot migrated to:
  https://repo.spring.io/libs-snapshot ([https](https://repo.spring.io/libs-snapshot) result 302).
* http://repo.spring.io/libs-staging-local 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
* http://maven.apache.org/xsd/maven-4.0.0.xsd
* http://www.w3.org/2001/XMLSchema-instance
2019-03-06 10:03:19 -05:00
..
2017-09-01 16:14:34 -04:00
2019-03-06 10:03:19 -05:00
2015-03-30 13:01:25 +03:00

Hello World Sample

This is an obvious place to get started. This sample project contains 2 basic sample applications:

  • Hello World
  • Poller Application

Hello World

The Hello World application demonstrates a simple message flow represented by the diagram below:

Message -> Channel -> ServiceActivator -> QueueChannel 

To run the sample simply execute HelloWorldApp in package org.springframework.integration.samples.helloworld. You can also execute that class using the Gradle:

$ gradlew :helloworld:runHelloWorldApp

You should see the following output:

INFO : org.springframework.integration.samples.helloworld.HelloWorldApp - ==> HelloWorldDemo: Hello World

Poller Application

This simple application will print out the current system time twice every 20 seconds.

More specifically, an Inbound Channel Adapter polls for the current system time 2 times every 20 seconds (20000 milliseconds). The resulting message contains as payload the time in milliseconds and the message is sent to a Logging Channel Adapter, which will print the time to the command prompt.

To run the sample simply execute PollerApp in package org.springframework.integration.samples.helloworld. You can also execute that class using the Gradle:

$ gradlew :helloworld:runPollerApp

You should see output like the following:

INFO : org.springframework.integration.samples.helloworld - 1328892135471
INFO : org.springframework.integration.samples.helloworld - 1328892135524