MultipleThread « Connection « Java Database Q&A





1. Pausing in between Retries of Network Connections    stackoverflow.com

Im am writing an application for the JBOSS JEE-Server. I would like to have the DB-access code quite robust. Thus I have created retry loops so that the request won't fail ...

2. Is java.sql.Connection thread safe?    stackoverflow.com

To rephrase the question: should I avoid sharing instances of classes which implement java.sql.Connection between different threads?

3. What is a good tool for the investigation of Database Connection usage in Java?    stackoverflow.com

What is a good tool for the investigation of Database Connection usage in Java? A developer is supporting a complex Java program which is ocassionally exhausting the number of Database connections available. ...

4. java.sql.Connection not visible from within a thread    stackoverflow.com

I created one thread with java.sql.Connection and String parameters. But from within the thread, I observed that String value was available but Connection object was not. Any clues? (Editing details into question): Well, ...

5. Connection Pooling over New Connection instance per Thread (JDBC)    stackoverflow.com

I am creating a multi-threaded application. However, I have experienced lots of unexpected behavior from my application when I have one connection object serving all threads. I am in a dilemma. ...

6. What could be the possibilities of using a thread-unsafe java.sql.Connection object in java?    stackoverflow.com

I am dealing with a legacy code where there the connection object in the singleton dao class is a member variable and is prone to race-conditions. I know this is a potential ...

7. JDBC auto commit for connection shared across threads    stackoverflow.com

I have a servlet where I get a Connection object which is then handed to two worker threads for various activities. I now need to add a transaction on one thread. If ...

8. Java: JDBC Database connection pool    stackoverflow.com

HI: I have a multi thread Java database application, we have to create a customized database pooling. The reason is that some of our preparedstatement has to be cached in the ...

9. JDBC Connection Proxy Across Threads    stackoverflow.com

Has anyone used a wrapper around a JDBC Connection that uses one thread to interact with the calling code, and a separate thread to talk to the database ? Perhaps something ...