Questions tagged [spring-integration-ip]

31 questions
0
votes
1 answer

How to reopen a Spring Socket from TcpConnectionFactory?

@Bean public TcpConnectionFactoryFactoryBean tcpFactory(LengthHeaderDeserializer deserializer) throws Exception { TcpConnectionFactoryFactoryBean fact = new TcpConnectionFactoryFactoryBean(); fact.setType("server"); fact.setPort(port); …
membersound
  • 81,582
  • 193
  • 585
  • 1,120
0
votes
1 answer

Connection not found when processing reply GenericMessage

Try to set up Spring Boot TCP Server with spring-integration-ip, but when send message to the server always get the error message: 2021-06-03 23:58:36.916 ERROR 35752 --- [pool-1-thread-4] o.s.i.ip.tcp.TcpInboundGateway : Connection not…
0
votes
1 answer

Is it possible use custom header in Spring Integration TCP?

I've been trying to create a simple example of Spring Integration TCP whose uses a custom UUID header in the Message and send this message thought the TCP channel. After that I recover the same message in other service, but the header isn't going to…
Marco Queiroz
  • 69
  • 2
  • 12
0
votes
1 answer

Spring Integration TCP doesn't send messages

I've been trying to create a consumer and a producer using the Spring Integration TCP. I've achived some success on the listening part (I got the message sended by a telnet normally), but when I try to send this same message to the terminal client,…
Marco Queiroz
  • 69
  • 2
  • 12
0
votes
1 answer

Spring Integration - IP - Receiving more than one response

I am working on a high-volume integration with using spring integration tcp and I only send a request and receive more than millions of data over one connection and the time between two receiving message is lower than 100 milliseconds. Here is my…
masay
  • 923
  • 2
  • 17
  • 34
0
votes
1 answer

About Non-blocking I/O is mean server side NIO?(in spring integration docs)

I'm working with spring integration. In this link About Non-blocking I/O, is it talking about server side NIO? I'm using TcpNioClientConnectionFactory(single-use = true) with CachingClientConnectionFactory. that document make me confused.
reperion
  • 129
  • 9
0
votes
1 answer

No publisher available to publish TcpConnectionOpenEvent / TcpConnectionCloseEvent

I configured a TCP Client with the Java DSL of Spring Integration. It looks like this @Bean public TcpSendingMessageHandler tcpClient() { return Tcp .outboundAdapter( Tcp.nioClient("localhost", 9060) …
0
votes
1 answer

Imitate behaviour of OutputStreamWriter with TcpSendingMessageHandler

We used the below piece of code for a Tcp server: try (ServerSocket serverSocket = new ServerSocket(port)) { while (true) { Socket socket = serverSocket.accept(); new ServerThread(socket).start(); } } and…
Hasan Can Saral
  • 2,950
  • 5
  • 43
  • 78
0
votes
0 answers

Logging interceptor in spring IP integration in Java DSL

I am integrating with one of the external vendor with spring-ip integration. I would like intercept the messages (much like web filters) to print to log file them before and after the transformation for logging and debugging purpose. As the message…
0
votes
2 answers

Echo socket service in Spring Integration DSL using Channels and Gateways

This is variant of my question How to implement simple echo socket service in Spring Integration DSL. A good working solutions was introduced but I would like to explore alternatives. Particularly I am interested in solution based on using inbound…
0
votes
1 answer

How to route using message headers in Spring Integration DSL Tcp

I have 2 server side services and I would like route messages to them using message headers, where remote clients put service identification into field type. Is the code snippet, from server side config, the correct way? It throws cast exception…
0
votes
1 answer

Spring integration TCP/IP close connection problem

I use spring integration as a Full Duplex communication system's gateway module. that flow is client app <--> spring-integration-ip-module (siid) <--> server app The problem is when client app closed, ssid can't closed connection with server app…
jsdsh
  • 31
  • 7
0
votes
1 answer

TcpReceivingChannelAdapter vs TcpSendingMessageHandler

Why channel can be set on TcpReceivingChannelAdapter, the inbound adapter, but not on TcpSendingMessageHandler, the outbound adapter? Why outbound adapter is called TcpSendingMessageHandler, why handler, not adapter? One would intuitively expects…
0
votes
2 answers

How to implement simple echo socket service in Spring Integration DSL

Please, could you help with implementation of a simple, echo style, Heartbeat TCP socket service in Spring Integration DSL? More precisely how to plug Adapter/Handler/Gateway to IntegrationFlows on the client and server side. Practical examples are…
Espinosa
  • 2,491
  • 24
  • 28
0
votes
1 answer

How can I send EOF signal to server ,when I use spring integration as tcp client?

I want use spring integration to replace socket client.My socket client code is like this: public static void main(String[] args) { try { Socket socket = new Socket("localhost", 7779); OutputStream os =…
jsdsh
  • 31
  • 7