2 thoughts on “TCP and UDP Channel Adapters in Spring Integration 2.0.0 M3

  1. Dear Gary,

    I am trying to write a tcp server which will listen on a socket for connection and then read everything readable from the outputstream of that socket to a buffer and write a transformed version of this message to its input stream – and then listen for the next connection and so on. This scenario would have been captured by the ByteArrayRawSerializer, but the reference pages state that this (de)serializer is not good for an inbound gateway. Is there a workaround to this? Thank you.

    Narayan

  2. The raw serializer uses the socket close to detect the end of stream. How will you know that you have all the data before sending a reply? If you have some way of knowing, you can simply write a custom Deserializer.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.