If I understand your question correctly, you may want to look at codec option of camel-mina component.
Thanks, Anand carlo c wrote: > > hi there, > > thanks a lot!! > i'm trying to understand the code in camel-mina and it seems that you > can configure it to signify that it is a textline? correct? > but what if the message returning isn't a text line. > In our case for example, the sample code that i use is > > dis.available() to determine if a message arrived, > afterwards, i configure a new byte[] in order to be able to read the > message > > Here is my source code using native java.io api > // input stream declaration coming from Socket > DataInputStream dis = **/ > // i'm checking this method (dis.available()) --> this returns the > number of bytes that an incoming message contains > byte[] responseByte = new byte[dis.available()]; > // > dis.readFully(responseByte); > > i somehow do it like this, > is there anyway that i can do this in camel mina? > i need to be able to get a response via the size of the input stream > coming back. > > thanks > carlo > > -- View this message in context: http://old.nabble.com/Question-On-Camel-Mina---Multiple-Messages-With-One-IOSession-tp27756509p27761139.html Sent from the Camel - Users mailing list archive at Nabble.com.
