Thread Saftey of JDBC Connection and PreparedStatements

Can I share Connection and Statement (PreparedStatement) objects between threads?

I have some concurrent processing that is inserting records using the same SQL syntax and I would like to create a PreparedStatement to improve the performance. The statement needs to be accessed by multiple threads to be efficient. Is this possible?

thanks

[358 byte] By [winderjja] at [2007-11-27 11:51:31]
# 1

No. Sharing those things is a bad idea.

DrClapa at 2007-7-29 18:38:38 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...