I have a client application that sends messages via a socket.  For each
message it sends it requires a response.  I have setup the Mina2 component
with a custom decoder to receive the messages.  This works when I have the
following in my camel-context.xml

        <camel:route>
            <camel:from uri="mina2:tcp://10.5.60.60:9000?codec=#myDecoder"
/>
            <camel:bean ref="OutputProcessor"/>
        </camel:route>

However, if I change the from route to include sync=true I get an error.

        <camel:route>
            <camel:from
uri="mina2:tcp://10.5.60.60:9000?sync=true;codec=#myDecoder" />
            <camel:bean ref="OutputProcessor"/>
        </camel:route>


Error:
org.apache.mina.filter.codec.ProtocolDecoderException:
org.apache.mina.core.buffer.BufferDataException: dataLength: 1347375948

Not sure why exactly it is doing this. Am I doing something wrong?

- Tim



--
View this message in context: 
http://camel.465427.n5.nabble.com/Mina-Synchronous-Communication-tp5737223.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to