Revert "file-split-ftp Move errorChannel to Poller"

This reverts commit 7b84810388.
This commit is contained in:
Gary Russell
2016-10-13 17:21:49 -04:00
parent 7b84810388
commit b3bab0dea2
8 changed files with 13 additions and 35 deletions

View File

@@ -25,7 +25,7 @@
<!-- From RabbitMQ To STDOUT -->
<int-amqp:inbound-channel-adapter channel="fromRabbit" consumers-per-queue="1"
<int-amqp:inbound-channel-adapter channel="fromRabbit"
queue-names="si.test.queue" connection-factory="connectionFactory" />
<int:channel id="fromRabbit">

View File

@@ -11,10 +11,6 @@
</appender>
<!-- Loggers -->
<logger name="org.springframework.amqp">
<level value="debug" />
</logger>
<logger name="org.springframework.integration">
<level value="warn" />
</logger>
@@ -33,4 +29,4 @@
<appender-ref ref="console" />
</root>
</log4j:configuration>
</log4j:configuration>

View File

@@ -23,14 +23,12 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.ImportResource;
import org.springframework.integration.http.config.EnableIntegrationGraphController;
/**
* @author Gary Russell
* @since 4.2
*/
@SpringBootApplication
@EnableIntegrationGraphController
@ImportResource("/META-INF/spring/integration/server-context.xml")
public class Application {
@@ -53,9 +51,9 @@ public class Application {
System.out.println("\n\n++++++++++++ Sending: " + request + " ++++++++++++\n");
String reply = requestGateway.echo(request);
System.out.println("\n\n++++++++++++ Replied with: " + reply + " ++++++++++++\n");
// client.close();
// server.close();
// System.exit(0); // AMQP-519
client.close();
server.close();
System.exit(0); // AMQP-519
}

View File

@@ -0,0 +1 @@
spring.output.ansi.enabled=always

View File

@@ -12,16 +12,11 @@
<int-http:inbound-gateway request-channel="receiveChannel"
path="/receiveGateway"
mapped-request-headers="Content-Type"
supported-methods="POST"/>
<int:channel id="receiveChannel"/>
<int:chain input-channel="receiveChannel">
<int:header-enricher>
<int:header name="contentType" expression="headers['content-type']" />
<int:header name="conent-type" expression="null" overwrite="true" />
</int:header-enricher>
<int:header-filter header-names="content-type" />
<int:service-activator expression="payload + ' from the other side'"/>
</int:chain>

View File

@@ -46,7 +46,6 @@ import org.springframework.kafka.listener.KafkaMessageListenerContainer;
import org.springframework.kafka.listener.config.ContainerProperties;
import org.springframework.kafka.support.KafkaNull;
import org.springframework.kafka.support.TopicPartitionInitialOffset;
import org.springframework.kafka.support.serializer.JsonDeserializer;
import org.springframework.messaging.Message;
import org.springframework.messaging.MessageChannel;
import org.springframework.messaging.MessageHandler;
@@ -141,9 +140,7 @@ public class Application {
props.put(ConsumerConfig.SESSION_TIMEOUT_MS_CONFIG, 15000);
props.put(ConsumerConfig.KEY_DESERIALIZER_CLASS_CONFIG, StringDeserializer.class);
props.put(ConsumerConfig.VALUE_DESERIALIZER_CLASS_CONFIG, StringDeserializer.class);
final DefaultKafkaConsumerFactory<String, String> cf = new DefaultKafkaConsumerFactory<>(props);
cf.setValueDeserializer(new JsonDeserializer<>(String.class));
return cf;
return new DefaultKafkaConsumerFactory<>(props);
}
@Bean