Check out my recent blog about this cool technology at SpringSource.
2 thoughts on “TCP and UDP Channel Adapters in Spring Integration 2.0.0 M3”
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
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.
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
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.