I am currently writing an apache mina 2.x-M3 high performance client.
This client connects and broadcast to 1000 different servers
concurrently. I am having trouble designing a connection manager that
won't block the application thread when establishing a connection and
that will handle exceptional scenarios gracefully.
I am having trouble coming up with fool proof design because currently,
I must wait for the connection with the remote host to get established.
I want to buffer the incoming requests while the connection gets
established and send them all once the session is created.
I also want to be able to handle cases where I am reconnecting to the
remote host.
Anyway, are there example out there of robust mina client connection
handling, something that properly handles concurrency scenarios?
How are we suppose to handle connection - disconnection - reconnection
scenarios with Mina API when we want high performance?
Thanks,
Simon