Simon Trudeau wrote:
I am currently writing an apache mina 2.x-M3 high performance client. This client connects and broadcast to 1000 different servers concurrently.
Presumably you have some requirements about the reliability of the broadcase, otherwise I'm not sure I see the problem here. Please elaborate - I've added some questions below :)
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.
What exactly must wait for the connection to be established, and why?
I want to buffer the incoming requests while the connection gets established and send them all once the session is created.
Why? Which events/calls in MINA are you talking about when you say "while the connection gets established"? Also, what incoming requests? The initial description only talks about broadcasting to servers.
I also want to be able to handle cases where I am reconnecting to the remote host.
How and why is this different from initially connecting to the same host?
Anyway, are there example out there of robust mina client connection handling, something that properly handles concurrency scenarios?
Most likely not. However, it's hard to say since I don't really understand what you want, and why.
