use of org.springframework.integration.ip.tcp.connection.TcpConnectionFailedCorrelationEvent in project spring-integration by spring-projects.
the class TcpSendingMessageHandler method publishNoConnectionEvent.
private void publishNoConnectionEvent(MessageHandlingException messageHandlingException, String connectionId) {
AbstractConnectionFactory cf = this.serverConnectionFactory != null ? this.serverConnectionFactory : this.clientConnectionFactory;
ApplicationEventPublisher applicationEventPublisher = cf.getApplicationEventPublisher();
if (applicationEventPublisher != null) {
applicationEventPublisher.publishEvent(new TcpConnectionFailedCorrelationEvent(this, connectionId, messageHandlingException));
}
}
use of org.springframework.integration.ip.tcp.connection.TcpConnectionFailedCorrelationEvent in project spring-integration by spring-projects.
the class TcpInboundGateway method publishNoConnectionEvent.
private void publishNoConnectionEvent(Message<?> message, String connectionId) {
AbstractConnectionFactory cf = this.serverConnectionFactory != null ? this.serverConnectionFactory : this.clientConnectionFactory;
ApplicationEventPublisher applicationEventPublisher = cf.getApplicationEventPublisher();
if (applicationEventPublisher != null) {
applicationEventPublisher.publishEvent(new TcpConnectionFailedCorrelationEvent(this, connectionId, new MessagingException(message, "Connection not found to process reply.")));
}
}
Aggregations