Hi,
I'm sending a 100 bytes array to a netty consumer.
Is there a way to post a message in the route each 100 bytes received?
I tried with a FixedLengthFrameDecoder of 100 bytes, but sometimes I receive
more than 100 bytes.
<from
uri="netty:tcp://ip:9001?decoders=#string-decoder,#length-decoder&receiveBufferSize=100"/>
<bean id="string-decoder"
class="org.jboss.netty.handler.codec.string.StringDecoder"/>
<bean id="length-decoder"
class="org.jboss.netty.handler.codec.frame.FixedLengthFrameDecoder">
<constructor-arg value="100"/>
</bean>
Thanks.
--
View this message in context:
http://camel.465427.n5.nabble.com/Netty-consumer-fixed-message-size-tp5750868.html
Sent from the Camel - Users mailing list archive at Nabble.com.