I see your requirement as a collection of node which needs to communicate
(as like in cluster) rather a client-server model. Open a socket at each
node and let them communicate when ever & in the way they want. In a client
server model you have to keep connection alive for a long time (which will
be idle for most of the times), should think about number of client that
connects to server at a time, server capacity etc... In short, I feel
treating them as cluster of nodes make sense and makes your application
better & cleaner.

On Thu, Nov 10, 2011 at 6:53 PM, Mikael <mikael-arons...@telia.com> wrote:

> I need my application to be a TCP server (almost), clients will connect,
> send one message to the server,
> receive an answer back and then the client will be silent, at specific
> intervals the server should send a
> message out to the client and get a response back, is this possible to do ?
>
> The first thing that crossed my mind would be to send out my message in
> the sessionIdle() method,
> and then the answer would come in as a normal request that I could handle,
> but in this case there is
> no response to send back to the client.
>
> Is this something that can be done in MINA or should I skip this and just
> use ordinary sockets for this ?
>
>

Reply via email to