elihusmails wrote:
> 
> did you check out the tutorials on the mina.apache.org site?
> 
> Thanks, Mark. I did read the tutorial and built my server/client
> accordingly. The tutorial didn't cover the topic of handling concurrent
> responses though. 
>  
> 
> 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,
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/How-to-construct-concurrent-UDP-client-with-MINA-tp20332009p20336347.html
Sent from the Apache MINA User Forum mailing list archive at Nabble.com.

Reply via email to