You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Sadanand Kusma <sk...@ARCCorp.com> on 2010/09/29 20:41:45 UTC

RE: netty questions

Thank you for asking question. You may want to post the question to the forum to get a better response and discussion will be useful to others if anyone runs into the same issue.

1. I am not sure if netty has any builtin timeout option anymore. Mina does have a timeout option. if you are using netty you may have to track response times yourself.
2. to my knowledge netty always runs in async mode.so you don't have to do anything special to make it run in async mode.

I hope that helps.

Thanks,
Anand


-----Original Message-----
From: angelctmex@hotmail.com [mailto:angelctmex@hotmail.com] 
Sent: Tuesday, September 28, 2010 7:41 PM
To: Sadanand Kusma
Subject: Hi Anand

he estado leyendo tus post y veo que has trabajado con camel-mina y camel-netty, y mi requerimiento se parece mucho al tuyo, y me preguntaba si me podrias ayudar un poco, este es el post que subi al foro:

http://camel.465427.n5.nabble.com/Procces-callbacks-after-timeout-td2901426.html#a2901426

I have a question about camel Netty briefly tell them that I'm consuming a service from another company which is exposed through the sockets, however I have set a timeout of 30 seconds per application, once that time expired and I will return it a specific response to the system that originated the request, but sometimes the other company sent me the response to my request after the timeout, so I need to give special treatment to these responses, however my questions are:
1) As I can process those responses that arrive after the timeout?
2) How I can make this process is asynchronous?, Once used as camel-mine, but I read that is more efficient netty.

I am currently using apache camel in my application, and

Greetings and thanks for your attention. 

RE: netty questions

Posted by Eugeniu <eu...@hotmail.com>.
Hi 

How does the connectTimeout and keepAlive parameters interact?

I found a strange behavior when using these parameters in combination:
When using this sequence - the message I should have gotten from the TCP
connection is not present (reply string is null).
?textline=true&amp;keepAlive=false&amp;sync=true&amp;connectTimeout=60000

When using this sequence - the behavior is as expected - the proper reply is
received and forwarded to the next point in the route.
?textline=true&amp;connectTimeout=60000&amp;keepAlive=false&amp;sync=true

The reply in both cases is really fast so the timeout is not an issue.

--
View this message in context: http://camel.465427.n5.nabble.com/RE-netty-questions-tp3046038p5713062.html
Sent from the Camel - Users mailing list archive at Nabble.com.

RE: netty questions

Posted by Ashwin Karpe <ak...@fusesource.com>.
Hi,

There is a connectTimeout parameter in Camel that allows you to configure a
Netty endpoint to timeout a connection due to inactivity.

If you have wide variances in the time you backend application sends
responses, you may use keepAlives to keep the connection going until you
receive a response. A better option would be to create a simple one
directional netty socket producer on either side (this would mean the
backend app has to change as well) and use a correlationId to correlate
requests against responses.

Netty supports both sync and async modes.

Hope this helps.

Cheers,

Ashwin...

-----
---------------------------------------------------------
Ashwin Karpe
Apache Camel Committer & Sr Principal Consultant
FUSESource (a Progress Software Corporation subsidiary)
http://fusesource.com http://fusesource.com 

Blog: http://opensourceknowledge.blogspot.com
http://opensourceknowledge.blogspot.com 
---------------------------------------------------------
-- 
View this message in context: http://camel.465427.n5.nabble.com/RE-netty-questions-tp3046038p3047101.html
Sent from the Camel - Users mailing list archive at Nabble.com.