My application uses Java and Spring Integration for Tcp connection. There are two types of features, In first I need to connect application as client and in another need to connect as server. Both are having two way communication using gateway using spring Integration.
I need to write gatling script for same, but I am new to gatling.
It would be great if there is sample program which is similar to my requirement, that I can refer as reference. Also I was not able to find any option for TCP in recorder.
Any help/pointer is really appreciated.
Looks like existing Spring Integration TCP Sample meets your requirements.
You can find there an XML config for the:
<int-ip:tcp-connection-factory id="crLfServer"
type="server"
port="${availableServerSocket}"/>
with an appropriate <int-ip:tcp-inbound-gateway>
and:
<int-ip:tcp-connection-factory id="client"
type="client"
host="localhost"
port="${availableServerSocket}"
single-use="true"
so-timeout="10000"/>
for the client side to communicate via <int-ip:tcp-outbound-gateway>
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.