| Line 4043... |
Line 4043... |
| 4043 |
try
|
4043 |
try
|
| 4044 |
{
|
4044 |
{
|
| 4045 |
if ( mConnection == null || ( mConnection != null && !mConnection.isValid(10) ) )
|
4045 |
if ( mConnection == null || ( mConnection != null && !mConnection.isValid(10) ) )
|
| 4046 |
{
|
4046 |
{
|
| 4047 |
mLogger.warn("connect calling getConnection");
|
4047 |
mLogger.warn("connect calling getConnection");
|
| 4048 |
mConnection = DriverManager.getConnection(mConnectionString, mUsername, mPassword);
|
4048 |
mConnection = DriverManager.getConnection(mConnectionString, mUsername + "[release_manager]", mPassword);
|
| 4049 |
// when connection to the database is established, the connection, by default, is in auto-commit mode
|
4049 |
// when connection to the database is established, the connection, by default, is in auto-commit mode
|
| 4050 |
// to adhere to the design in the use of select for update, it is crucial to turn auto-commit off
|
4050 |
// to adhere to the design in the use of select for update, it is crucial to turn auto-commit off
|
| 4051 |
// this also improves performance
|
4051 |
// this also improves performance
|
| 4052 |
mConnection.setAutoCommit(false);
|
4052 |
mConnection.setAutoCommit(false);
|
| 4053 |
}
|
4053 |
}
|