Omar BELKHODJA
Omar BELKHODJA

Reputation: 1902

TCP session with Spring Integration framework

I'm trying to create an iso8385 TCP server using Spring Integration. A typical scenario would be the following:

I want to keep track of each new TCP connection, and create an identifier for it, in order to associate each processing to the connected client. But I don't know how to do that. The idea would be to have:

Does anyone know how to perform this ?

Upvotes: 0

Views: 405

Answers (1)

Artem Bilan
Artem Bilan

Reputation: 121177

Actually <int-tcp:tcp-inbound-gateway> does the stuff for you:

  • you configure <int-tcp:tcp-connection-factory type="server">
  • inject it into the <int-tcp:tcp-inbound-gateway>
  • all other correlation logic is encapsulated in the last one

I have some experience with iso8385, but I don't think that there is a reason to get deal here with MCC or terminalId to correlate messages.

Would be more interest to provide some routing logic for ISO message types. But it is a different story...

Upvotes: 0

Related Questions