did you check out the tutorials on the mina.apache.org site?


On Tue, Nov 4, 2008 at 4:52 PM, Yong Yuan <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm building a UDP server that handles each incoming request in a separate
> thread. The problem is, a UDP client may send out multiple requests
> concurrently by using multiple threads. Each thread on the client will wait
> for responses from the server. Since UDP is connectionless, a client thread
> may receive a mismatching datagram. In this case, does MINA have any
> built-in mechanism that helps a client thread to get the matching response?
> If not, I guess we can build a queue that dispatches responses to
> appropriate client threads. However, what if I need to run multiple clients
> in different JVMs on the same client machine, and each client will make
> requests to the same server? Is there any good way of handling such
> scenario, or we should really use TCP in this case?
>
> Thanks,
>

Reply via email to