On Mon, Jun 18, 2012 at 3:05 PM, Alexander Kaiser
<alexander.g.kai...@gmail.com> wrote:
> Hi,
>
> I am trying to connect to a server with mina. The server sends a hello
> message on socket connect, then I send it a command and want to receive the
> servers reply in the message body.
>
> camel-mina connects server
>                  <-- welcome message
> command -->
>                  <-- reply
>
> Basically I need to skip, or parse and skip the welcome message, and then
> decode the reply.
>
> With mina I can get only the servers welcome message. I read in a
> thread<http://camel.465427.n5.nabble.com/Single-request-with-multiple-replies-over-TCP-td5022206.html>on
> this subject that mina2 supports this kind of scenario, but I can't
> find
> any documentation on mina2.
>
> Does mina2 indeed support this?
>
> Many thanks,
> Alexander

What protocol are you using?
A text based, with a line terminator or something?

You could possible build a custom codec, that understands the welcome
message, and is capable of skipping that.




-- 
Claus Ibsen
-----------------
FuseSource
Email: cib...@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Reply via email to