I think it's little strange to create threads in the DAO layer - you already have multiple threads - one per user session- started by the servlet and propagated to the EJB layer. Why would you need more?
Joined: Mar 28, 2005
I have seen scenarios where people need the result from tables from two remote databases. If you use threads to execute queries, the speed is much faster than making one queries and then after it is done and you make another. [ August 30, 2005: Message edited by: Jeremy Hsu ]