You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/reference/asciidoc/ip.adoc
+78Lines changed: 78 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -381,6 +381,8 @@ The following example shows a client connection factory that uses `java.net.Sock
381
381
382
382
Starting with version 5.2, the client connection factories support the property `connectTimeout`, specified in seconds, which defaults to 60.
383
383
384
+
Also see <<ip-annotation>> and <<ip-dsl>>.
385
+
384
386
[[tcp-codecs]]
385
387
==== Message Demarcation (Serializers and Deserializers)
386
388
@@ -496,6 +498,8 @@ NOTE: You can also modify the attributes of sockets and socket factories.
496
498
See <<ssl-tls>> for more information.
497
499
As noted there, such modifications are possible whether or not SSL is being used.
498
500
501
+
Also see <<ip-annotation>> and <<ip-dsl>>.
502
+
499
503
==== Custom Serializers and Deserializers
500
504
501
505
If your data is not in a format supported by one of the standard deserializers, you can implement your own; you can also implement a custom serializer.
@@ -815,6 +819,8 @@ The following example shows how to define client and server TCP connection facto
815
819
----
816
820
====
817
821
822
+
Also see <<ip-annotation>> and <<ip-dsl>>.
823
+
818
824
In the preceding configuration, messages arriving in the `input` channel are serialized over connections created by `client` connection factory, received at the server, and placed on the `loop` channel.
819
825
Since `loop` is the input channel for `outboundServer`, the message is looped back over the same connection, received by `inboundClient`, and deposited in the `replies` channel.
820
826
Java serialization is used on the wire.
@@ -923,6 +929,8 @@ To support this on the server side, you can now register multiple `TcpSender` s
923
929
Gateways and Channel Adapters automatically register themselves.
924
930
When sending unsolicited messages from the server, you must add the appropriate `IpHeaders.CONNECTION_ID` to the messages sent.
925
931
932
+
Also see <<ip-annotation>> and <<ip-dsl>>.
933
+
926
934
[[ip-correlation]]
927
935
=== TCP Message Correlation
928
936
@@ -2247,3 +2255,73 @@ In this scenario, the `@ServiceActivator` configures the endpoint, according to
2247
2255
2248
2256
<8> The server-side connection factory.
2249
2257
====
2258
+
2259
+
[[ip-dsl]]
2260
+
=== Using the Java DSL for TCP Components
2261
+
2262
+
DSL support for TCP components includes specs for adapters and gateways, the `Tcp` class with factory methods to create connection factory beans, and the `TcpCodecs` class with factory methods to create serializers and deserializers.
2263
+
Refer to their javadocs for more information.
2264
+
2265
+
Here are some examples of using the DSL to configure flows using the DSL.
0 commit comments