Well, yes you can use a connection in any thread, but understand that
the connection represents a single DBMS user doing a single series
of queries and/or updates, with one transaction in-force at any given
moment. As such, unless your threads are well coordinated to act
as a single DBMS user, it is much better for each thread to have it's own
connection
2008-8-1 14:31Sky-Tiger
Use a thread local variable (where each thread has a separate value) when you want to carry a value along without explicitly passing it from method to method down the call stack, and when appropriate, remember to explicitly clear the value in a finally block to prevent memory leaks