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

Reply via email to