You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by vcheruvu <v_...@hotmail.com> on 2012/04/10 08:40:17 UTC

Re: tcp socket client consumer endpoint?

Hi Camel riders,

  I have tried  tcp client consumer with camel-mina2 and confirmed that it
doesn't support it yet. Will this feature be available in 2.10?

Kind regards,
-Vid-

--
View this message in context: http://camel.465427.n5.nabble.com/tcp-socket-client-consumer-endpoint-tp3276804p5629124.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: tcp socket client consumer endpoint?

Posted by j <br...@gmail.com>.
have anyone of you guys succeeded in preparing his own Component for this
scenario?

would you share some snippets?



--
View this message in context: http://camel.465427.n5.nabble.com/tcp-socket-client-consumer-endpoint-tp3276804p5725365.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: tcp socket client consumer endpoint?

Posted by vjboston <vj...@gmail.com>.
This is the exact functionality I am looking for.I want to connect to a
remote server.But mina tries to create a socket and fails with a bind
error.Has this new component out yet ? 



--
View this message in context: http://camel.465427.n5.nabble.com/tcp-socket-client-consumer-endpoint-tp3276804p5740075.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: tcp socket client consumer endpoint?

Posted by Chad Beaulac <ca...@gmail.com>.
Hi Vid,

You are correct. camel-mina and camel-mina2 do not support this behavior at
this time. camel-mina2 will do this shortly. I have that scenario working
in my sandbox but it is not pushed to the repository yet. I'm also running
that scenario with a a Google Protocol Buffers Mina2 codec that I wrote;
which supports multiple message types over a single connection and handles
the scenario you laid out below. Look forward to seeing more camel-mina2
asynchronous functionality soon.

Regards,
Chad Beaulac
Objective Solutions, Inc
www.objectivesolutions.com


On Tue, Apr 10, 2012 at 7:43 PM, vcheruvu <v_...@hotmail.com> wrote:

> Hi Chad,
>
>  Currently, I have to implement a tcp client that connects to a remote
> host. The following things takes place between client and remote host
>
> 1. Once connected to remote host, client send login message with a custom
> message format converted into bytes over wire. Remote host  will send
> sucessfull login code to client.
> 2. Once login is successfull,  TCP client send another  message that
> defines
> our interest to get data from remote host as asynchronous mode. The remote
> host will understand our message and publishes  data to our socket session.
> 3. While client is connected,  Remote host will send ping to Client for
> heartbeat check. Client must respond to the heartbeat for remote host
> within
> a time period, this is to ensure that remote host doesn't think that client
> is down otherwise socket session is closed after 3 tries.
>
> I am trying to see if above is possible with camel-mina2 with custom
> processors/handlers for sending/receiving messages to/from remote host.
>
> Kind regards,
> -Vid-
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/tcp-socket-client-consumer-endpoint-tp3276804p5631446.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>

Re: tcp socket client consumer endpoint?

Posted by vcheruvu <v_...@hotmail.com>.
Hi Chad,

  Currently, I have to implement a tcp client that connects to a remote
host. The following things takes place between client and remote host

1. Once connected to remote host, client send login message with a custom
message format converted into bytes over wire. Remote host  will send
sucessfull login code to client.
2. Once login is successfull,  TCP client send another  message that defines
our interest to get data from remote host as asynchronous mode. The remote
host will understand our message and publishes  data to our socket session.
3. While client is connected,  Remote host will send ping to Client for
heartbeat check. Client must respond to the heartbeat for remote host within
a time period, this is to ensure that remote host doesn't think that client
is down otherwise socket session is closed after 3 tries.

I am trying to see if above is possible with camel-mina2 with custom
processors/handlers for sending/receiving messages to/from remote host. 

Kind regards,
-Vid-


--
View this message in context: http://camel.465427.n5.nabble.com/tcp-socket-client-consumer-endpoint-tp3276804p5631446.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: tcp socket client consumer endpoint?

Posted by Chad Beaulac <ca...@gmail.com>.
Hi,

The camel-mina2 component works just like camel-mina at the moment. Are you looking for full async producer and consumer can send any number of messages or something else camel-mina doesn't do now?
I've been working on the camel-mina2 component for awhile. The full async behavior is taking awhile since its done in my spare time, of which I have none. 
I intend to have full async behavior working within a couple months (caveats for other customer needs consuming my time). 

Regards
Chad 

Sent from my iPhone

On Apr 10, 2012, at 2:40 AM, vcheruvu <v_...@hotmail.com> wrote:

> Hi Camel riders,
> 
>  I have tried  tcp client consumer with camel-mina2 and confirmed that it
> doesn't support it yet. Will this feature be available in 2.10?
> 
> Kind regards,
> -Vid-
> 
> --
> View this message in context: http://camel.465427.n5.nabble.com/tcp-socket-client-consumer-endpoint-tp3276804p5629124.html
> Sent from the Camel - Users mailing list archive at Nabble.com.