Newbie questions

Bozo Juretic bjuretic at inet.hr
Tue Aug 11 04:13:34 EDT 2009


Hi all,

I have two newbie questions; I couldn't find examples dealing with those
two, so perhaps someone can give me a hand here.

1. What is the best way to implement reconnecting mechanism for TCP
client in which the connection with the server should be up at all
times. I need to send periodic "ping status" messages to the server as
well. At the start of app I need to connect to host (and retry if host
is not available), and if the connection goes down I need to reconnect
up with the server in some smart way (perhaps you have reconnecting
strategies implemented somewhere in netty code?).

2. What is the best way to send incoming JMS message payload to the
server and send back the response to the client via another JMS
responseQueue? I have a JMS listener which gets the payload from
requestQueue, and now I guess that I need a local memory queue on which
to push this data; netty would then check the memory queue and send the
data to the server if the data if found. Do you have any example for
this queue mechanism, or any comments if I got this wrong?

Thanks for the answers and best regards,

Bozo


More information about the netty-users mailing list