Check out the new series of “Getting Started with Spring” articles “from the Source”…
The collection of Spring Integration samples now includes a simple demonstration of using tcp inbound and outbound gateways. It also shows how to inject messages into a Spring Integration flow using a simple telnet client.
See tcp-client-server under the ‘basic’ projects.
You can get all the samples using git, as described inOleg’s post on the SpringSource Team Blog. Or, you can browse this sample here. There’s also a link to download all the samples in a gzipped tarball on that page (‘Download master as tar.gz’).
Edit: The samples have now moved to gitub. Click on ‘Downloads’ if you don’t use Git. You can also browse the tcp/ip sample here.
Check out my recent blog about this cool technology at SpringSource.