diff --git a/samples/aws-s3/README.md b/samples/aws-s3/README.md
deleted file mode 100644
index 36cf57d..0000000
--- a/samples/aws-s3/README.md
+++ /dev/null
@@ -1,62 +0,0 @@
-Spring Integration - Amazon S3 Sample
-=====================================
-
-## Introduction
-
-This sample demonstrate the usage of the *Spring Integration* support for
-[Amazon Simple Storage Service][] (Amazon S3). The sample covers 2 use-cases:
-
-* **Upload** a file to Amazon S3 using the *s3-outbound-channel-adapter*
-* **Poll** files from Amazon S3 using the *s3-inbound-channel-adapter*
-
-## How to Run the Sample
-
-You can execute this sample simply via [Maven][]:
-
- $ mvn clean package exec:java
-
-Once executed you should see the following screen:
-
- =========================================================
-
- Welcome to the Spring Integration Amazon S3 Sample
-
- For more information please visit:
- https://github.com/SpringSource/spring-integration-extensions
-
- =========================================================
- What would you like to do?
- 1. Upload a file to Amazon S3
- 2. Poll files from Amazon S3
- q. Quit the application
- >
-
-Once you have selected either **Option 1** or **Option 2**, you will be asked to
-provide the **Access Key ID** and the **Secret Access Key** for *Amazon Web Services*.
-
-You may also consider providing the **Access Key ID** and the **Secret Access Key**
-via the command line:
-
- $ mvn clean package exec:java -DaccessKey=12345 -DsecretKey=12345
-
-In that case you will not be asked to provide that information again.
-
-## s3-outbound-channel-adapter
-
-When you selected the option to upload a file you will be asked to specify the file you would like to upload:
-
- Please enter the path to the file you want to upload:
-
-Enter a path such as `/demo/data/myfile.txt`.
-
-## s3-inbound-channel-adapter
-
-The polled files will be stored under `s3-local-storage`.
-
---------------------------------------------------------------------------------
-
-For help please take a look at the [Spring Integration documentation][]
-
-[Amazon Simple Storage Service]: https://aws.amazon.com/s3/
-[Maven]: https://maven.apache.org/
-[Spring Integration documentation]: https://www.springsource.org/spring-integration
diff --git a/samples/aws-s3/pom.xml b/samples/aws-s3/pom.xml
deleted file mode 100644
index 20142a1..0000000
--- a/samples/aws-s3/pom.xml
+++ /dev/null
@@ -1,112 +0,0 @@
-
- 4.0.0
-
- org.springframework.integration.samples
- aws-s3
- 1.0.0.BUILD-SNAPSHOT
- jar
-
- aws-s3
- https://www.springsource.org/spring-integration
-
-
- 2.2.1
-
-
-
- UTF-8
- 2.2.1.RELEASE
- 0.5.0.BUILD-SNAPSHOT
- 1.2.17
- 4.11
-
-
-
-
- repo.springsource.org.milestone
- Spring Framework Maven Milestone Repository
- https://repo.springsource.org/libs-snapshot
-
-
-
-
-
-
- maven-eclipse-plugin
- 2.9
-
-
- org.springframework.ide.eclipse.core.springnature
-
-
- org.springframework.ide.eclipse.core.springbuilder
-
- true
- true
-
-
-
- org.apache.maven.plugins
- maven-compiler-plugin
- 3.0
-
- 1.6
- 1.6
- -Xlint:all
- true
- true
-
-
-
- org.codehaus.mojo
- exec-maven-plugin
- 1.2.1
-
- org.springframework.integration.samples.aws.s3.Main
-
-
-
-
-
-
-
-
-
-
- junit
- junit
- ${junit.version}
- test
-
-
-
-
-
- org.springframework.integration
- spring-integration-core
- ${spring.integration.version}
-
-
-
- org.springframework.integration
- spring-integration-file
- ${spring.integration.version}
-
-
-
- org.springframework.integration
- spring-integration-aws
- ${spring.integration.aws.version}
-
-
-
-
-
- log4j
- log4j
- ${log4j.version}
-
-
-
-
diff --git a/samples/aws-s3/s3-local-storage/polled_files_go_here.txt b/samples/aws-s3/s3-local-storage/polled_files_go_here.txt
deleted file mode 100644
index e69de29..0000000
diff --git a/samples/aws-s3/src/main/java/org/springframework/integration/samples/aws/s3/Main.java b/samples/aws-s3/src/main/java/org/springframework/integration/samples/aws/s3/Main.java
deleted file mode 100644
index 55f1dbc..0000000
--- a/samples/aws-s3/src/main/java/org/springframework/integration/samples/aws/s3/Main.java
+++ /dev/null
@@ -1,155 +0,0 @@
-/*
- * Copyright 2002-2013 the original author or authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.springframework.integration.samples.aws.s3;
-
-import java.io.File;
-import java.util.Scanner;
-
-import org.apache.log4j.Logger;
-import org.springframework.context.support.GenericXmlApplicationContext;
-import org.springframework.core.env.ConfigurableEnvironment;
-import org.springframework.integration.MessageChannel;
-import org.springframework.integration.support.MessageBuilder;
-
-/**
- * Starts the Spring Context and will initialize the Spring Integration routes.
- *
- * @author Gunnar Hillert
- * @since 1.0
- *
- */
-public final class Main {
-
- private static final Logger LOGGER = Logger.getLogger(Main.class);
-
- private static final String HORIZONTAL_LINE = "\n=========================================================";
-
- private Main() { }
-
- /**
- * Load the Spring Integration Application Context
- *
- * @param args - command line arguments
- */
- public static void main(final String... args) {
-
- final Scanner scanner = new Scanner(System.in);
-
- if (LOGGER.isInfoEnabled()) {
- LOGGER.info(HORIZONTAL_LINE
- + "\n "
- + "\n Welcome to the Spring Integration Amazon S3 Sample "
- + "\n "
- + "\n For more information please visit: "
- + "\nhttps://github.com/SpringSource/spring-integration-extensions"
- + "\n "
- + HORIZONTAL_LINE );
- }
-
- final GenericXmlApplicationContext context = new GenericXmlApplicationContext();
- final ConfigurableEnvironment environment = context.getEnvironment();
-
- System.out.println("What would you like to do?");
- System.out.println("\t1. Upload a file to Amazon S3");
- System.out.println("\t2. Poll files from Amazon S3");
- System.out.println("\tq. Quit the application");
- System.out.print(" > ");
-
- String filePath;
-
- while (true) {
- final String input = scanner.nextLine();
-
- if("1".equals(input.trim())) {
-
- System.out.println("Uploading to Amazon S3...");
-
- environment.setActiveProfiles("upload-to-s3");
- setupCredentials(environment, scanner);
- setupS3info(environment, scanner);
-
- context.load("classpath:META-INF/spring/integration/*-context.xml");
- context.registerShutdownHook();
- context.refresh();
-
- System.out.print("\nPlease enter the path to the file you want to upload: ");
- filePath = scanner.nextLine();
-
- final MessageChannel messageChannel = context.getBean("s3channel", MessageChannel.class);
- messageChannel.send(MessageBuilder.withPayload(new File(filePath)).build());
-
- break;
-
- }
- else if("2".equals(input.trim())) {
-
- System.out.println("Polling files from Amazon S3...");
- environment.setActiveProfiles("poll-s3");
- setupCredentials(environment, scanner);
- setupS3info(environment, scanner);
-
- context.load("classpath:META-INF/spring/integration/*-context.xml");
- context.registerShutdownHook();
- context.refresh();
-
- }
- else if("q".equals(input.trim())) {
- System.out.println("Exiting application...bye.");
- System.exit(0);
- }
- else {
- System.out.println("Invalid choice\n\n");
- System.out.print("Enter you choice: ");
- }
- }
-
-
- if (LOGGER.isInfoEnabled()) {
- LOGGER.info("Exiting application...bye.");
- }
-
- System.exit(0);
-
- }
-
- private static void setupCredentials(ConfigurableEnvironment environment, Scanner scanner) {
- if (!environment.containsProperty("accessKey")) {
- System.out.print("\nPlease enter your Access Key ID: ");
- final String accessKey = scanner.nextLine();
- environment.getSystemProperties().put("accessKey", accessKey);
- }
-
- if (!environment.containsProperty("secretKey")) {
- System.out.print("\nPlease enter your Secret Access Key: ");
- final String secretKey = scanner.nextLine();
- environment.getSystemProperties().put("secretKey", secretKey);
- }
- }
-
- private static void setupS3info(ConfigurableEnvironment environment, Scanner scanner) {
- if (!environment.containsProperty("bucket")) {
- System.out.print("\nWhich bucket do you want to use? ");
- final String bucket = scanner.nextLine();
- environment.getSystemProperties().put("bucket", bucket);
- }
-
- if (!environment.containsProperty("remoteDirectory")) {
- System.out.print("\nPlease enter the S3 remote directory to use: ");
- final String remoteDirectory = scanner.nextLine();
- environment.getSystemProperties().put("remoteDirectory", remoteDirectory);
- }
- }
-}
diff --git a/samples/aws-s3/src/main/resources/META-INF/spring/integration/spring-integration-context.xml b/samples/aws-s3/src/main/resources/META-INF/spring/integration/spring-integration-context.xml
deleted file mode 100644
index 1ca39bb..0000000
--- a/samples/aws-s3/src/main/resources/META-INF/spring/integration/spring-integration-context.xml
+++ /dev/null
@@ -1,44 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/samples/aws-s3/src/main/resources/log4j.xml b/samples/aws-s3/src/main/resources/log4j.xml
deleted file mode 100644
index 5ae5943..0000000
--- a/samples/aws-s3/src/main/resources/log4j.xml
+++ /dev/null
@@ -1,28 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/samples/kafka/.gitignore b/samples/kafka/.gitignore
deleted file mode 100644
index 38b0df2..0000000
--- a/samples/kafka/.gitignore
+++ /dev/null
@@ -1,2 +0,0 @@
-derby.log
-
diff --git a/samples/kafka/README.md b/samples/kafka/README.md
deleted file mode 100644
index d4cb9b3..0000000
--- a/samples/kafka/README.md
+++ /dev/null
@@ -1,5 +0,0 @@
-Spring Integration Kafka Sample
-================================
-
-This sample demonstrates the usage of the *[Spring Integration Kafka][]* adapters.
-
diff --git a/samples/kafka/build.gradle b/samples/kafka/build.gradle
deleted file mode 100644
index 9c2f052..0000000
--- a/samples/kafka/build.gradle
+++ /dev/null
@@ -1,92 +0,0 @@
-description = 'Spring Integration Kafka Sample'
-
-buildscript {
- repositories {
- maven { url 'https://repo.maven.apache.org/maven2/' }
- //mavenLocal()
- maven { url 'https://repo.spring.io/simple/ext-release-local' }
- }
- dependencies {
- classpath 'org.apache.maven:maven-artifact:2.2.1' // 3.x won't work
- classpath 'org.apache.avro:avro-compiler:1.7.3' // use Avro 1.7.4 to compile the Avro files
- //classpath 'org.clojars.miguno:avro-gradle-plugin:1.7.2'
- classpath "org.apache.avro:avro-gradle-plugin:1.7.2"
- }
-}
-
-apply plugin: 'base'
-apply plugin: 'java'
-apply plugin: 'eclipse'
-apply plugin: 'application'
-apply plugin: 'idea'
-apply plugin: 'maven'
-apply plugin: 'avro-gradle-plugin'
-
-ext {
- avroTaskGroup = "Avro"
- avroSource = "schemas"
- avroDest = "target/generated-avro-sources/main/java"
-}
-
-repositories {
- maven {
- url 'https://repository.apache.org/content/groups/public'
- }
- maven { url 'https://repo.springsource.org/libs-milestone' }
- mavenLocal()
-}
-
-dependencies {
- compile "org.springframework.integration:spring-integration-stream:$springIntegrationVersion"
- compile("org.springframework.integration:spring-integration-kafka:$springIntegrationKafkaVersion") {
- exclude module: 'log4j'
- exclude module: 'jms'
- exclude module: 'jmxtools'
- exclude module: 'jmxri'
- }
- compile("log4j:log4j:1.2.15") {
- exclude module: 'mail'
- exclude module: 'jms'
- exclude module: 'jmx'
- exclude module: 'jmxtools'
- exclude module: 'jmxri'
- }
- compile "commons-logging:commons-logging:1.1.1"
-}
-
-compileAvro.group = avroTaskGroup
-compileAvro.description = "Generates Java code from avro schema"
-compileAvro.source = avroSource
-compileAvro.destinationDir = file(avroDest)
-
-task cleanAvro(type: Delete) {
- group = avroTaskGroup
- description = "deletes generated avro code"
- delete avroDest
-}
-
-compileJava.dependsOn compileAvro
-
-sourceSets {
- main {
- java {
- srcDir avroDest
- }
- resources {
- srcDir avroSource
- }
- }
-}
-
-task wrapper(type: Wrapper) {
- description = 'Generates gradlew[.bat] scripts'
- gradleVersion = '1.8'
-}
-
-eclipse {
- project {
- name = "spring-integration-kafka-sample"
- }
-}
-
-defaultTasks 'clean', 'build'
diff --git a/samples/kafka/gradle.properties b/samples/kafka/gradle.properties
deleted file mode 100644
index d1a04db..0000000
--- a/samples/kafka/gradle.properties
+++ /dev/null
@@ -1,6 +0,0 @@
-springIntegrationVersion = 4.0.3.RELEASE
-springIntegrationKafkaVersion = 1.0.0.BUILD-SNAPSHOT
-version = 1.0.0.BUILD-SNAPSHOT
-
-
-
diff --git a/samples/kafka/gradle/wrapper/gradle-wrapper.jar b/samples/kafka/gradle/wrapper/gradle-wrapper.jar
deleted file mode 100644
index 667288a..0000000
Binary files a/samples/kafka/gradle/wrapper/gradle-wrapper.jar and /dev/null differ
diff --git a/samples/kafka/gradle/wrapper/gradle-wrapper.properties b/samples/kafka/gradle/wrapper/gradle-wrapper.properties
deleted file mode 100644
index dc5de8b..0000000
--- a/samples/kafka/gradle/wrapper/gradle-wrapper.properties
+++ /dev/null
@@ -1,6 +0,0 @@
-#Tue Jul 22 17:46:28 EEST 2014
-distributionBase=GRADLE_USER_HOME
-distributionPath=wrapper/dists
-zipStoreBase=GRADLE_USER_HOME
-zipStorePath=wrapper/dists
-distributionUrl=https\://services.gradle.org/distributions/gradle-1.12-all.zip
diff --git a/samples/kafka/gradlew b/samples/kafka/gradlew
deleted file mode 100755
index 91a7e26..0000000
--- a/samples/kafka/gradlew
+++ /dev/null
@@ -1,164 +0,0 @@
-#!/usr/bin/env bash
-
-##############################################################################
-##
-## Gradle start up script for UN*X
-##
-##############################################################################
-
-# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
-DEFAULT_JVM_OPTS=""
-
-APP_NAME="Gradle"
-APP_BASE_NAME=`basename "$0"`
-
-# Use the maximum available, or set MAX_FD != -1 to use that value.
-MAX_FD="maximum"
-
-warn ( ) {
- echo "$*"
-}
-
-die ( ) {
- echo
- echo "$*"
- echo
- exit 1
-}
-
-# OS specific support (must be 'true' or 'false').
-cygwin=false
-msys=false
-darwin=false
-case "`uname`" in
- CYGWIN* )
- cygwin=true
- ;;
- Darwin* )
- darwin=true
- ;;
- MINGW* )
- msys=true
- ;;
-esac
-
-# For Cygwin, ensure paths are in UNIX format before anything is touched.
-if $cygwin ; then
- [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
-fi
-
-# Attempt to set APP_HOME
-# Resolve links: $0 may be a link
-PRG="$0"
-# Need this for relative symlinks.
-while [ -h "$PRG" ] ; do
- ls=`ls -ld "$PRG"`
- link=`expr "$ls" : '.*-> \(.*\)$'`
- if expr "$link" : '/.*' > /dev/null; then
- PRG="$link"
- else
- PRG=`dirname "$PRG"`"/$link"
- fi
-done
-SAVED="`pwd`"
-cd "`dirname \"$PRG\"`/" >&-
-APP_HOME="`pwd -P`"
-cd "$SAVED" >&-
-
-CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
-
-# Determine the Java command to use to start the JVM.
-if [ -n "$JAVA_HOME" ] ; then
- if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
- # IBM's JDK on AIX uses strange locations for the executables
- JAVACMD="$JAVA_HOME/jre/sh/java"
- else
- JAVACMD="$JAVA_HOME/bin/java"
- fi
- if [ ! -x "$JAVACMD" ] ; then
- die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
-
-Please set the JAVA_HOME variable in your environment to match the
-location of your Java installation."
- fi
-else
- JAVACMD="java"
- which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
-
-Please set the JAVA_HOME variable in your environment to match the
-location of your Java installation."
-fi
-
-# Increase the maximum file descriptors if we can.
-if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then
- MAX_FD_LIMIT=`ulimit -H -n`
- if [ $? -eq 0 ] ; then
- if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
- MAX_FD="$MAX_FD_LIMIT"
- fi
- ulimit -n $MAX_FD
- if [ $? -ne 0 ] ; then
- warn "Could not set maximum file descriptor limit: $MAX_FD"
- fi
- else
- warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
- fi
-fi
-
-# For Darwin, add options to specify how the application appears in the dock
-if $darwin; then
- GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
-fi
-
-# For Cygwin, switch paths to Windows format before running java
-if $cygwin ; then
- APP_HOME=`cygpath --path --mixed "$APP_HOME"`
- CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
-
- # We build the pattern for arguments to be converted via cygpath
- ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
- SEP=""
- for dir in $ROOTDIRSRAW ; do
- ROOTDIRS="$ROOTDIRS$SEP$dir"
- SEP="|"
- done
- OURCYGPATTERN="(^($ROOTDIRS))"
- # Add a user-defined pattern to the cygpath arguments
- if [ "$GRADLE_CYGPATTERN" != "" ] ; then
- OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
- fi
- # Now convert the arguments - kludge to limit ourselves to /bin/sh
- i=0
- for arg in "$@" ; do
- CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
- CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
-
- if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
- eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
- else
- eval `echo args$i`="\"$arg\""
- fi
- i=$((i+1))
- done
- case $i in
- (0) set -- ;;
- (1) set -- "$args0" ;;
- (2) set -- "$args0" "$args1" ;;
- (3) set -- "$args0" "$args1" "$args2" ;;
- (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
- (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
- (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
- (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
- (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
- (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
- esac
-fi
-
-# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules
-function splitJvmOpts() {
- JVM_OPTS=("$@")
-}
-eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS
-JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"
-
-exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"
diff --git a/samples/kafka/gradlew.bat b/samples/kafka/gradlew.bat
deleted file mode 100644
index aec9973..0000000
--- a/samples/kafka/gradlew.bat
+++ /dev/null
@@ -1,90 +0,0 @@
-@if "%DEBUG%" == "" @echo off
-@rem ##########################################################################
-@rem
-@rem Gradle startup script for Windows
-@rem
-@rem ##########################################################################
-
-@rem Set local scope for the variables with windows NT shell
-if "%OS%"=="Windows_NT" setlocal
-
-@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
-set DEFAULT_JVM_OPTS=
-
-set DIRNAME=%~dp0
-if "%DIRNAME%" == "" set DIRNAME=.
-set APP_BASE_NAME=%~n0
-set APP_HOME=%DIRNAME%
-
-@rem Find java.exe
-if defined JAVA_HOME goto findJavaFromJavaHome
-
-set JAVA_EXE=java.exe
-%JAVA_EXE% -version >NUL 2>&1
-if "%ERRORLEVEL%" == "0" goto init
-
-echo.
-echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
-echo.
-echo Please set the JAVA_HOME variable in your environment to match the
-echo location of your Java installation.
-
-goto fail
-
-:findJavaFromJavaHome
-set JAVA_HOME=%JAVA_HOME:"=%
-set JAVA_EXE=%JAVA_HOME%/bin/java.exe
-
-if exist "%JAVA_EXE%" goto init
-
-echo.
-echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
-echo.
-echo Please set the JAVA_HOME variable in your environment to match the
-echo location of your Java installation.
-
-goto fail
-
-:init
-@rem Get command-line arguments, handling Windowz variants
-
-if not "%OS%" == "Windows_NT" goto win9xME_args
-if "%@eval[2+2]" == "4" goto 4NT_args
-
-:win9xME_args
-@rem Slurp the command line arguments.
-set CMD_LINE_ARGS=
-set _SKIP=2
-
-:win9xME_args_slurp
-if "x%~1" == "x" goto execute
-
-set CMD_LINE_ARGS=%*
-goto execute
-
-:4NT_args
-@rem Get arguments from the 4NT Shell from JP Software
-set CMD_LINE_ARGS=%$
-
-:execute
-@rem Setup the command line
-
-set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
-
-@rem Execute Gradle
-"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
-
-:end
-@rem End local scope for the variables with windows NT shell
-if "%ERRORLEVEL%"=="0" goto mainEnd
-
-:fail
-rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
-rem the _cmd.exe /c_ return code!
-if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
-exit /b 1
-
-:mainEnd
-if "%OS%"=="Windows_NT" endlocal
-
-:omega
diff --git a/samples/kafka/schemas/user.avdl b/samples/kafka/schemas/user.avdl
deleted file mode 100644
index f8f9e8b..0000000
--- a/samples/kafka/schemas/user.avdl
+++ /dev/null
@@ -1,7 +0,0 @@
-@namespace("org.springframework.integration.samples.kafka.user")
-protocol UserProtocol{
-record User {
- string firstName;
- string lastName;
-}
-}
\ No newline at end of file
diff --git a/samples/kafka/src/main/java/org/springframework/integration/samples/kafka/inbound/InboundRunner.java b/samples/kafka/src/main/java/org/springframework/integration/samples/kafka/inbound/InboundRunner.java
deleted file mode 100644
index e00aece..0000000
--- a/samples/kafka/src/main/java/org/springframework/integration/samples/kafka/inbound/InboundRunner.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Copyright 2002-2013 the original author or authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.springframework.integration.samples.kafka.inbound;
-
-import org.springframework.context.support.ClassPathXmlApplicationContext;
-
-public class InboundRunner {
- private static final String CONFIG = "kafkaInboundAdapterParserTests-context.xml";
-
- public static void main(final String args[]) {
- final ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext(CONFIG, InboundRunner.class);
- ctx.start();
- }
-}
diff --git a/samples/kafka/src/main/java/org/springframework/integration/samples/kafka/outbound/CustomPartitioner.java b/samples/kafka/src/main/java/org/springframework/integration/samples/kafka/outbound/CustomPartitioner.java
deleted file mode 100644
index 07c948e..0000000
--- a/samples/kafka/src/main/java/org/springframework/integration/samples/kafka/outbound/CustomPartitioner.java
+++ /dev/null
@@ -1,37 +0,0 @@
-/*
- * Copyright 2002-2013 the original author or authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.springframework.integration.samples.kafka.outbound;
-
-import kafka.producer.Partitioner;
-
-/**
- * @author Soby Chacko
- *
- * This class is for internal use only and therefore is at default access level
- */
-class CustomPartitioner implements Partitioner {
- /**
- * Uses the key to calculate a partition bucket id for routing
- * the data to the appropriate broker partition
- * @return an integer between 0 and numPartitions-1
- */
- @Override
- public int partition(final Object key, final int numPartitions) {
- final String s = (String) key;
- final Integer i = Integer.parseInt(s);
- return i % numPartitions;
- }
-}
diff --git a/samples/kafka/src/main/java/org/springframework/integration/samples/kafka/outbound/OutboundRunner.java b/samples/kafka/src/main/java/org/springframework/integration/samples/kafka/outbound/OutboundRunner.java
deleted file mode 100644
index 468ae7a..0000000
--- a/samples/kafka/src/main/java/org/springframework/integration/samples/kafka/outbound/OutboundRunner.java
+++ /dev/null
@@ -1,77 +0,0 @@
-/*
- * Copyright 2002-2013 the original author or authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.springframework.integration.samples.kafka.outbound;
-
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
-import org.springframework.context.support.ClassPathXmlApplicationContext;
-import org.springframework.integration.samples.kafka.user.User;
-import org.springframework.integration.support.MessageBuilder;
-import org.springframework.messaging.MessageChannel;
-
-public class OutboundRunner {
- private static final String CONFIG = "kafkaOutboundAdapterParserTests-context.xml";
- private static final Log LOG = LogFactory.getLog(OutboundRunner.class);
-
- public static void main(final String args[]) {
- final ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext(CONFIG, OutboundRunner.class);
- ctx.start();
-
- final MessageChannel channel = ctx.getBean("inputToKafka", MessageChannel.class);
- LOG.info(channel.getClass());
-
- //sending 100,000 messages to Kafka server for topic test1
- for (int i = 0; i < 500; i++) {
- final User user = new User();
- user.setFirstName("fname" + i);
- user.setLastName("lname" + i);
- channel.send(
- MessageBuilder.withPayload(user)
- .setHeader("messageKey", String.valueOf(i))
- .setHeader("topic", "test1").build());
-
- LOG.info("message sent " + i);
- }
-
- //sending 5,000 messages to kafka server for topic test2
- for (int i = 0; i < 50; i++) {
- channel.send(
- MessageBuilder.withPayload("hello Fom ob adapter test2 - " + i)
- .setHeader("messageKey", String.valueOf(i))
- .setHeader("topic", "test2").build());
-
- LOG.info("message sent " + i);
- }
-
- //Send some messages to multiple topics matching regex.
- for (int i = 0; i < 10; i++) {
- channel.send(
- MessageBuilder.withPayload("hello Fom ob adapter regextopic1 - " + i)
- .setHeader("messageKey", String.valueOf(i))
- .setHeader("topic", "regextopic1").build());
-
- LOG.info("message sent " + i);
- }
- for (int i = 0; i < 10; i++) {
- channel.send(
- MessageBuilder.withPayload("hello Fom ob adapter regextopic2 - " + i)
- .setHeader("messageKey", String.valueOf(i))
- .setHeader("topic", "regextopic2").build());
-
- LOG.info("message sent " + i);
- }
- }
-}
diff --git a/samples/kafka/src/main/java/org/springframework/integration/samples/kafka/outbound/PartitionlessTransformer.java b/samples/kafka/src/main/java/org/springframework/integration/samples/kafka/outbound/PartitionlessTransformer.java
deleted file mode 100644
index 7da06c4..0000000
--- a/samples/kafka/src/main/java/org/springframework/integration/samples/kafka/outbound/PartitionlessTransformer.java
+++ /dev/null
@@ -1,56 +0,0 @@
-/*
- * Copyright 2002-2013 the original author or authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.springframework.integration.samples.kafka.outbound;
-
-import org.springframework.integration.support.MessageBuilder;
-import org.springframework.integration.transformer.Transformer;
-import org.springframework.messaging.Message;
-
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-
-/**
- * @author Soby Chacko
- */
-public class PartitionlessTransformer implements Transformer {
- @Override
- @SuppressWarnings("unchecked")
- public Message> transform(final Message> message) {
-
- final Map>> origData =
- (Map>>) message.getPayload();
-
- final Map> nonPartitionedData = new HashMap<>();
-
- for(final String topic : origData.keySet()) {
- final Map> partitionedData = origData.get(topic);
- final Collection> nonPartitionedDataFromTopic = partitionedData.values();
-
- final List