is a connection object thread safe ? what will happen if i use it in several thread ?
posted 9 years ago
You should definitely not use a Connection object in more than one thread simultaneously. You're right that transaction issues would need to be considered, so unless you can guarantee that those aren't an issue, and are also sure that the threads won't access the Connection simultaneously, you shouldn't share it.