camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <>
Subject Re: camel mina tcp client
Date Mon, 18 May 2009 04:18:52 GMT
On Sun, May 17, 2009 at 7:55 PM, swalden <> wrote:
> Hi I am trying to use camel mina as a tcp client to connect to a tcp server
> that requires sending a login connection string like "ID=user,PWD=pwd", and
> then loops to receive a continuous set of bytes where each "message" has the
> first 2 bytes specifies the number of following bytes to read for the rest
> of the message message.
> It seems the MinaConsumer works as a tcp server so this won't work.  It
> seems that the MinaProducer just uses a single send/receive pattern so this
> doesnt seem appropriate either. I just want to send the login string and
> then continue to process the bytes from the tcp server.
> Is there a way to use MinaProducer for this?  or should I create a custom
> camel endpoint/component/consumer for this use case?
> Any ideas are greatly appreciated.
Maybe a custom mina protocol can do the trick and be able to handle
the login and the receive data afterwards.

There might be a length protocol with mina that can read the first two
bytes, but if not you need to develop this yourself.

> thx,
> sean
> --
> View this message in context:
> Sent from the Camel - Users mailing list archive at

Claus Ibsen
Apache Camel Committer

Open Source Integration:

View raw message