az-qbradley / async-mysql-connector

Automatically exported from code.google.com/p/async-mysql-connector
0 stars 0 forks source link

How to use inside of a normal web app? #1

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
This is not a bug report per say, more of a question on usage within a real 
world application.

I see that you need to manage the Multiplexer by calling select on it within a 
tight loop otherwise nothing will happen. How should this work in say a servlet 
3 based async web app? Could you provide an example async servlet that makes a 
query against a fictional database and return the results to the caller? Would 
there have to be a separate thread responsible for running the while loop that 
calls select on the multiplexer?

Thanks for your help.

Original issue reported on code.google.com by vangel...@gmail.com on 10 Jul 2014 at 5:05

GoogleCodeExporter commented 8 years ago
I want to ask the same question, how to use inside a servlet?

Original comment by bbqyw...@gmail.com on 23 Nov 2014 at 9:32